From 444553c7f0d11a2ab5a1c95211ab24c2201b5cd8 Mon Sep 17 00:00:00 2001 From: Serge Gautherie Date: Fri, 4 May 2018 19:10:57 +0200 Subject: [PATCH] [DESK.CPL] Fix a Clang-Cl warning about "LogPixels" "warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]" CORE-14306 --- dll/cpl/desk/general.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dll/cpl/desk/general.c b/dll/cpl/desk/general.c index 0858c16f974..e5891a02cf2 100644 --- a/dll/cpl/desk/general.c +++ b/dll/cpl/desk/general.c @@ -32,8 +32,8 @@ InitFontSizeList(HWND hWnd) dwSize = MAX_PATH; dwType = REG_DWORD; - if (!RegQueryValueEx(hKey, _T("LogPixels"), NULL, - &dwType, (LPBYTE)&dwValue, &dwSize) == ERROR_SUCCESS) + if (RegQueryValueEx(hKey, _T("LogPixels"), NULL, &dwType, + (LPBYTE)&dwValue, &dwSize) != ERROR_SUCCESS) { dwValue = 0; }