winspool.drv: Fix a logical operator typo

Andrew Talbot andrew.talbot at talbotville.com
Sat Aug 27 11:42:48 CDT 2011


Changelog:
    winspool.drv: Fix a logical operator typo.

diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c
index 5201e30..cb74482 100644
--- a/dlls/winspool.drv/info.c
+++ b/dlls/winspool.drv/info.c
@@ -503,7 +503,7 @@ static BOOL CUPS_LoadPrinters(void)
             haddefault = TRUE;
         }
     }
-    if (hadprinter & !haddefault) {
+    if (hadprinter && !haddefault) {
         MultiByteToWideChar(CP_UNIXCP, 0, dests[0].name, -1, nameW, sizeof(nameW) / sizeof(WCHAR));
         SetDefaultPrinterW(nameW);
     }



More information about the wine-patches mailing list