mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
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
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue