Commit df8c52cd authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

winspool: Add support for level 1 printer info to GetPrinter.

parent eec7f105
......@@ -4435,6 +4435,24 @@ BOOL WINAPI GetPrinterW(HANDLE hPrinter, DWORD Level, LPBYTE pPrinter,
}
switch(Level) {
case 1:
{
PRINTER_INFO_1W *pi1 = (PRINTER_INFO_1W *)pPrinter;
size = sizeof(PRINTER_INFO_1W);
if (size <= cbBuf) {
ptr = pPrinter + size;
cbBuf -= size;
memset(pPrinter, 0, size);
} else {
pi1 = NULL;
cbBuf = 0;
}
ret = WINSPOOL_GetPrinter_1(hkeyPrinter, pi1, ptr, cbBuf, &needed);
needed += size;
break;
}
case 2:
{
PRINTER_INFO_2W *pi2 = (PRINTER_INFO_2W *)pPrinter;
......
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