https://git.reactos.org/?p=reactos.git;a=commitdiff;h=627f3dc7256e24c13a905087dda52c8eb8a3c33f

commit 627f3dc7256e24c13a905087dda52c8eb8a3c33f
Author:     Serge Gautherie <reactos-git_serge_171...@gautherie.fr>
AuthorDate: Fri May 4 23:04:14 2018 +0200
Commit:     Hermès BÉLUSCA - MAÏTO <hermes.belusca-ma...@reactos.org>
CommitDate: Mon May 7 14:00:41 2018 +0200

    [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
---
 dll/win32/devmgr/properties/misc.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dll/win32/devmgr/properties/misc.cpp 
b/dll/win32/devmgr/properties/misc.cpp
index 5dbe6a4ea0..50ec12f94e 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;

Reply via email to