Handle the EnumPrinters() flag PRINTER_ENUM_DEFAULT in the same way
that NT does - that is ignore it and return TRUE.
This commit is contained in:
parent
c18391a003
commit
87f98a5831
|
@ -1526,6 +1526,12 @@ static BOOL WINSPOOL_EnumPrinters(DWORD dwType, LPWSTR lpszName,
|
|||
memset(lpbPrinters, 0, cbBuf);
|
||||
if(lpdwReturned)
|
||||
*lpdwReturned = 0;
|
||||
if(lpdwNeeded)
|
||||
*lpdwNeeded = 0;
|
||||
|
||||
/* PRINTER_ENUM_DEFAULT is only supported under win9x, we behave like NT */
|
||||
if(dwType == PRINTER_ENUM_DEFAULT)
|
||||
return TRUE;
|
||||
|
||||
if (!((dwType & PRINTER_ENUM_LOCAL) || (dwType & PRINTER_ENUM_NAME))) {
|
||||
FIXME("dwType = %08lx\n", dwType);
|
||||
|
|
Loading…
Reference in New Issue