From: Serge Gautherie Date: Fri, 4 May 2018 21:04:14 +0000 (+0200) Subject: [DEVMGR] Fix a Clang-Cl warning about DriverInfoDetailData.SectionName X-Git-Tag: 0.4.9-RC~70 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=627f3dc7256e24c13a905087dda52c8eb8a3c33f [DEVMGR] Fix a Clang-Cl warning about DriverInfoDetailData.SectionName "warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]" CORE-14306 --- diff --git a/dll/win32/devmgr/properties/misc.cpp b/dll/win32/devmgr/properties/misc.cpp index 5dbe6a4ea0c..50ec12f94e7 100644 --- a/dll/win32/devmgr/properties/misc.cpp +++ b/dll/win32/devmgr/properties/misc.cpp @@ -1078,8 +1078,7 @@ FindCurrentDriver(IN HDEVINFO DeviceInfoSet, ERR("SetupDiGetDriverInfoDetail() failed with error 0x%lx\n", GetLastError()); goto Cleanup; } - if (!_wcsicmp(DriverInfoDetailData.SectionName, - InfSection) != 0) + if (_wcsicmp(DriverInfoDetailData.SectionName, InfSection) == 0) { /* We have found the right driver */ Ret = TRUE;