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:
Huw D M Davies 2001-01-09 20:52:17 +00:00 committed by Alexandre Julliard
parent c18391a003
commit 87f98a5831
1 changed files with 6 additions and 0 deletions

View File

@ -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);