[DESK.CPL] Fix a Clang-Cl warning about "LogPixels"
authorSerge Gautherie <reactos-git_serge_171003@gautherie.fr>
Fri, 4 May 2018 17:10:57 +0000 (19:10 +0200)
committerHermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
Fri, 4 May 2018 20:02:48 +0000 (22:02 +0200)
"warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]"

CORE-14306

dll/cpl/desk/general.c

index 0858c16..e5891a0 100644 (file)
@@ -32,8 +32,8 @@ InitFontSizeList(HWND hWnd)
                 dwSize = MAX_PATH;
                 dwType = REG_DWORD;
 
                 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;
                 }
                 {
                     dwValue = 0;
                 }