https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5ca037d5f6a285730f2f9d...
commit 5ca037d5f6a285730f2f9ddfecb3125899d4bd9b Author: Serge Gautherie reactos-git_serge_171003@gautherie.fr AuthorDate: Fri May 4 06:15:37 2018 +0200 Commit: Hermès BÉLUSCA - MAÏTO hermes.belusca-maito@reactos.org CommitDate: Fri May 4 22:02:24 2018 +0200
[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 --- base/services/umpnpmgr/umpnpmgr.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/base/services/umpnpmgr/umpnpmgr.c b/base/services/umpnpmgr/umpnpmgr.c index e86047785a..de64057afb 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; }