https://git.reactos.org/?p=reactos.git;a=commitdiff;h=444553c7f0d11a2ab5a1c…
commit 444553c7f0d11a2ab5a1c95211ab24c2201b5cd8
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Fri May 4 19:10:57 2018 +0200
Commit: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito(a)reactos.org>
CommitDate: Fri May 4 22:02:48 2018 +0200
[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 0858c16f97..e5891a02cf 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;
}