do not call on NtQuerySecurityObject in RegGetKeySecurity for it will
always fail on reactos.
adding #ifndef __REACTOS__ around that code and should be remove when we
have that call implement in reactos.
Modified: trunk/reactos/lib/advapi32/reg/reg.c
_____
Modified: trunk/reactos/lib/advapi32/reg/reg.c
--- trunk/reactos/lib/advapi32/reg/reg.c 2005-12-29 20:51:14 UTC
(rev 20438)
+++ trunk/reactos/lib/advapi32/reg/reg.c 2005-12-29 21:01:51 UTC
(rev 20439)
@@ -2507,12 +2507,13 @@
TRACE("MapDefaultKey() failed (Status %lx)\n", Status);
return RtlNtStatusToDosError (Status);
}
-
+#ifndef __REACTOS__
Status = NtQuerySecurityObject(KeyHandle,
SecurityInformation,
pSecurityDescriptor,
*lpcbSecurityDescriptor,
lpcbSecurityDescriptor);
+#endif
ClosePredefKey(KeyHandle);