[NTOSKRNL]
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 11 Oct 2013 13:15:20 +0000 (13:15 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 11 Oct 2013 13:15:20 +0000 (13:15 +0000)
* Fix logically dead code block. CID 731331.
CORE-6681

svn path=/trunk/; revision=60609

reactos/ntoskrnl/ex/win32k.c

index 7abfd29..707c410 100644 (file)
@@ -211,10 +211,10 @@ ExpWin32kInit(VOID)
     ObjectTypeInitializer.OkayToCloseProcedure = ExpDesktopOkToClose;
     ObjectTypeInitializer.OpenProcedure = ExpDesktopOpen;
     ObjectTypeInitializer.CloseProcedure = ExpDesktopClose;
-    ObCreateObjectType(&Name,
-                       &ObjectTypeInitializer,
-                       NULL,
-                       &ExDesktopObjectType);
+    Status = ObCreateObjectType(&Name,
+                                &ObjectTypeInitializer,
+                                NULL,
+                                &ExDesktopObjectType);
     if (!NT_SUCCESS(Status)) return FALSE;
     
     return TRUE;