winspool: Forward SetPrinterA to SetPrinterW.

This commit is contained in:
Huw Davies 2012-04-05 13:25:49 +01:00 committed by Alexandre Julliard
parent 2421519447
commit 9166fcb7a0
1 changed files with 15 additions and 4 deletions

View File

@ -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;
}
/*****************************************************************************