add missing error check
authorThomas Bluemel <thomas@reactsoft.com>
Fri, 25 Nov 2005 15:57:47 +0000 (15:57 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Fri, 25 Nov 2005 15:57:47 +0000 (15:57 +0000)
svn path=/trunk/; revision=19557

reactos/lib/rtl/bootdata.c

index d1b8731..2093f6d 100644 (file)
@@ -230,6 +230,10 @@ RtlpSysVolCheckOwnerAndSecurity(IN HANDLE DirectoryHandle,
                                          0,
                                          0,
                                          &LocalSystemSid);
                                          0,
                                          0,
                                          &LocalSystemSid);
+    if (!NT_SUCCESS(Status))
+    {
+        goto Cleanup;
+    }
 
     /* check if the Administrators are the owner and at least a not-NULL DACL
        is present */
 
     /* check if the Administrators are the owner and at least a not-NULL DACL
        is present */