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

commit 635775d2496fe3d4032ffc9d854a8ea430a8b63c
Author:     Hermès Bélusca-Maïto <[email protected]>
AuthorDate: Tue Apr 3 02:10:08 2018 +0200
Commit:     Hermès Bélusca-Maïto <[email protected]>
CommitDate: Sun Apr 22 16:52:36 2018 +0200

    [NTOSKRNL] Set flags the standard way.
---
 ntoskrnl/io/pnpmgr/pnpmgr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ntoskrnl/io/pnpmgr/pnpmgr.c b/ntoskrnl/io/pnpmgr/pnpmgr.c
index 83ff6774b6..3337495ae0 100644
--- a/ntoskrnl/io/pnpmgr/pnpmgr.c
+++ b/ntoskrnl/io/pnpmgr/pnpmgr.c
@@ -452,7 +452,7 @@ IopInitializeDevice(PDEVICE_NODE DeviceNode,
 
    if (DeviceNode->Flags & DNF_LEGACY_DRIVER)
    {
-      DeviceNode->Flags |= DNF_ADDED + DNF_STARTED;
+      DeviceNode->Flags |= (DNF_ADDED | DNF_STARTED);
       return STATUS_SUCCESS;
    }
 

Reply via email to