[ros-diffs] [greatlrd] 20437: do not call on NtQuerySecurityObject in RegQueryInfoKey for it will always fail on reactos.

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Thu Dec 29 21:31:58 CET 2005


do not call on  NtQuerySecurityObject in RegQueryInfoKey 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 19:54:42 UTC
(rev 20436)
+++ trunk/reactos/lib/advapi32/reg/reg.c	2005-12-29 20:31:22 UTC
(rev 20437)
@@ -3184,7 +3184,7 @@

     {
       *lpcbMaxValueLen = FullInfo->MaxValueDataLen;
     }
-
+#ifndef __REACTOS__ 
   if (lpcbSecurityDescriptor != NULL)
     {
       Status = NtQuerySecurityObject(KeyHandle,
@@ -3207,6 +3207,7 @@
 	  goto Cleanup;
 	}
     }
+#endif
 
   if (lpftLastWriteTime != NULL)
     {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051229/6a24f247/attachment.html


More information about the Ros-diffs mailing list