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:
Vijay Kiran Kamuju 2020-06-03 09:42:49 +01:00 committed by Alexandre Julliard
parent f1d40d4824
commit 992a0ae7b9
1 changed files with 18 additions and 2 deletions

View File

@ -5403,9 +5403,25 @@ BOOL WINAPI AddPrinterDriverW(LPWSTR pName, DWORD level, LPBYTE pDriverInfo)
BOOL WINAPI AddPrintProcessorA(LPSTR pName, LPSTR pEnvironment, LPSTR pPathName,
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));
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;
}
/*****************************************************************************