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

commit c2757032c8cdc79e0f13284b7b32aa100deb7769
Author:     Eric Kohl <[email protected]>
AuthorDate: Sat Apr 10 16:22:47 2021 +0200
Commit:     Eric Kohl <[email protected]>
CommitDate: Sat Apr 10 16:22:47 2021 +0200

    [DEVMGR] Use FlagsEx to check for DI_FLAGSEX_POWERPAGE_ADDED
---
 dll/win32/devmgr/properties/advprop.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dll/win32/devmgr/properties/advprop.cpp 
b/dll/win32/devmgr/properties/advprop.cpp
index 4cd508c9c82..aac24a749f7 100644
--- a/dll/win32/devmgr/properties/advprop.cpp
+++ b/dll/win32/devmgr/properties/advprop.cpp
@@ -2246,11 +2246,12 @@ GetParentNode:
             {
                 /* zero the flags */
                 InstallParams.Flags = 0;
+                InstallParams.FlagsEx = 0;
             }
 
             dap->HasDriverPage = !(InstallParams.Flags & DI_DRIVERPAGE_ADDED);
             dap->HasResourcePage = !(InstallParams.Flags & 
DI_RESOURCEPAGE_ADDED);
-            dap->HasPowerPage = !(InstallParams.Flags & 
DI_FLAGSEX_POWERPAGE_ADDED);
+            dap->HasPowerPage = !(InstallParams.FlagsEx & 
DI_FLAGSEX_POWERPAGE_ADDED);
         }
     }
 

Reply via email to