From 87f98a58316bf45f01544dc7057e0f2774a39bd9 Mon Sep 17 00:00:00 2001 From: Huw D M Davies Date: Tue, 9 Jan 2001 20:52:17 +0000 Subject: [PATCH] Handle the EnumPrinters() flag PRINTER_ENUM_DEFAULT in the same way that NT does - that is ignore it and return TRUE. --- dlls/winspool/info.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/winspool/info.c b/dlls/winspool/info.c index e1b9f1b5531..21b093661a2 100644 --- a/dlls/winspool/info.c +++ b/dlls/winspool/info.c @@ -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);