From: Serge Gautherie Date: Fri, 4 May 2018 04:15:37 +0000 (+0200) Subject: [UMPNPMGR] Fix a Clang-Cl warning about "CSConfigFlags" X-Git-Tag: 0.4.9-RC~77 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=5ca037d5f6a285730f2f9ddfecb3125899d4bd9b [UMPNPMGR] Fix a Clang-Cl warning about "CSConfigFlags" "warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]" CORE-14306 --- diff --git a/base/services/umpnpmgr/umpnpmgr.c b/base/services/umpnpmgr/umpnpmgr.c index e86047785ac..de64057afbb 100644 --- a/base/services/umpnpmgr/umpnpmgr.c +++ b/base/services/umpnpmgr/umpnpmgr.c @@ -2423,12 +2423,12 @@ PNP_HwProfFlags( else { dwSize = sizeof(DWORD); - if (!RegQueryValueExW(hDeviceKey, - L"CSConfigFlags", - NULL, - NULL, - (LPBYTE)pulValue, - &dwSize) != ERROR_SUCCESS) + if (RegQueryValueExW(hDeviceKey, + L"CSConfigFlags", + NULL, + NULL, + (LPBYTE)pulValue, + &dwSize) != ERROR_SUCCESS) { *pulValue = 0; }