Module: wine Branch: master Commit: b7987c6b32bcad1e8f282adee5e2cbd4b5ccacda URL: http://source.winehq.org/git/wine.git/?a=commit;h=b7987c6b32bcad1e8f282adee5...
Author: Andrey Gusev andrey.goosev@gmail.com Date: Mon Oct 9 16:03:05 2017 +0300
winspool.drv: Avoid bitwise operation.
Signed-off-by: Andrey Gusev andrey.goosev@gmail.com Signed-off-by: Huw Davies huw@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/winspool.drv/info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c index f09745d..9c24256 100644 --- a/dlls/winspool.drv/info.c +++ b/dlls/winspool.drv/info.c @@ -606,7 +606,7 @@ static BOOL add_printer_driver(const WCHAR *name, WCHAR *ppd) res = AddPrinterDriverExW( NULL, 3, (LPBYTE)&di3, APD_COPY_NEW_FILES | APD_COPY_FROM_DIRECTORY ); TRACE("got %d and %d for %s (%s)\n", res, GetLastError(), debugstr_w(name), debugstr_w(di3.pEnvironment));
- if (!res & (GetLastError() != ERROR_PRINTER_DRIVER_ALREADY_INSTALLED)) + if (!res && (GetLastError() != ERROR_PRINTER_DRIVER_ALREADY_INSTALLED)) { ERR("failed with %u for %s (%s) %s\n", GetLastError(), debugstr_w(name), debugstr_w(di3.pEnvironment), debugstr_w(di3.pDriverPath));