Commit 9166fcb7 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

winspool: Forward SetPrinterA to SetPrinterW.

parent 24215194
......@@ -2840,11 +2840,22 @@ BOOL WINAPI DeletePrinter(HANDLE hPrinter)
/*****************************************************************************
* SetPrinterA [WINSPOOL.@]
*/
BOOL WINAPI SetPrinterA(HANDLE hPrinter, DWORD Level, LPBYTE pPrinter,
DWORD Command)
BOOL WINAPI SetPrinterA( HANDLE printer, DWORD level, LPBYTE data, DWORD command )
{
FIXME("(%p,%d,%p,%d): stub\n",hPrinter,Level,pPrinter,Command);
return FALSE;
BYTE *dataW = data;
BOOL ret;
if (level != 0)
{
dataW = printer_info_AtoW( data, level );
if (!dataW) return FALSE;
}
ret = SetPrinterW( printer, level, dataW, command );
if (dataW != data) free_printer_info( dataW, level );
return ret;
}
/*****************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment