winspool.drv: Implement AddPrintProcessorA via AddPrintProcessorW.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=26171 Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f1d40d4824
commit
992a0ae7b9
|
@ -5403,9 +5403,25 @@ BOOL WINAPI AddPrinterDriverW(LPWSTR pName, DWORD level, LPBYTE pDriverInfo)
|
||||||
BOOL WINAPI AddPrintProcessorA(LPSTR pName, LPSTR pEnvironment, LPSTR pPathName,
|
BOOL WINAPI AddPrintProcessorA(LPSTR pName, LPSTR pEnvironment, LPSTR pPathName,
|
||||||
LPSTR pPrintProcessorName)
|
LPSTR pPrintProcessorName)
|
||||||
{
|
{
|
||||||
FIXME("(%s,%s,%s,%s): stub\n", debugstr_a(pName), debugstr_a(pEnvironment),
|
UNICODE_STRING NameW, EnvW, PathW, ProcessorW;
|
||||||
|
BOOL ret;
|
||||||
|
|
||||||
|
TRACE("(%s,%s,%s,%s)\n", debugstr_a(pName), debugstr_a(pEnvironment),
|
||||||
debugstr_a(pPathName), debugstr_a(pPrintProcessorName));
|
debugstr_a(pPathName), debugstr_a(pPrintProcessorName));
|
||||||
return FALSE;
|
|
||||||
|
asciitounicode(&NameW, pName);
|
||||||
|
asciitounicode(&EnvW, pEnvironment);
|
||||||
|
asciitounicode(&PathW, pPathName);
|
||||||
|
asciitounicode(&ProcessorW, pPrintProcessorName);
|
||||||
|
|
||||||
|
ret = AddPrintProcessorW(NameW.Buffer, EnvW.Buffer, PathW.Buffer, ProcessorW.Buffer);
|
||||||
|
|
||||||
|
RtlFreeUnicodeString(&ProcessorW);
|
||||||
|
RtlFreeUnicodeString(&PathW);
|
||||||
|
RtlFreeUnicodeString(&EnvW);
|
||||||
|
RtlFreeUnicodeString(&NameW);
|
||||||
|
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
|
|
Loading…
Reference in New Issue