[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
This commit is contained in:
Serge Gautherie 2018-05-04 19:10:57 +02:00 committed by Hermès BÉLUSCA - MAÏTO
parent 5ca037d5f6
commit 444553c7f0

View file

@ -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;
}