do not call on NtQuerySecurityObject in RegGetKeySecurity for it will always fail...
authorMagnus Olsen <magnus@greatlord.com>
Thu, 29 Dec 2005 21:01:51 +0000 (21:01 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Thu, 29 Dec 2005 21:01:51 +0000 (21:01 +0000)
adding #ifndef __REACTOS__ around that code and should be remove when we have that call implement in reactos.

svn path=/trunk/; revision=20439

reactos/lib/advapi32/reg/reg.c

index ab4f7f3..9f14c5e 100644 (file)
@@ -2507,12 +2507,13 @@ RegGetKeySecurity(HKEY hKey,
       TRACE("MapDefaultKey() failed (Status %lx)\n", Status);
       return RtlNtStatusToDosError (Status);
     }
-
+#ifndef __REACTOS__
   Status = NtQuerySecurityObject(KeyHandle,
                                 SecurityInformation,
                                 pSecurityDescriptor,
                                 *lpcbSecurityDescriptor,
                                 lpcbSecurityDescriptor);
+#endif
 
   ClosePredefKey(KeyHandle);