[PATCH 5/6] ntdll: avoid potential infinite loop

Paul Bryan Roberts pbronline-wine at yahoo.co.uk
Mon Nov 3 16:42:42 CST 2008


---
 dlls/ntdll/om.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/ntdll/om.c b/dlls/ntdll/om.c
index bc2ee97..aba2301 100644
--- a/dlls/ntdll/om.c
+++ b/dlls/ntdll/om.c
@@ -174,7 +174,7 @@ NtQuerySecurityObject(
     PISECURITY_DESCRIPTOR_RELATIVE psd = pSecurityDescriptor;
     NTSTATUS status;
     unsigned int buffer_size = 512;
-    BOOLEAN need_more_memory = FALSE;
+    BOOLEAN need_more_memory;
 
     TRACE("(%p,0x%08x,%p,0x%08x,%p)\n",
 	Object, RequestedInformation, pSecurityDescriptor, Length, ResultLength);
@@ -185,6 +185,8 @@ NtQuerySecurityObject(
         if (!buffer)
             return STATUS_NO_MEMORY;
 
+        need_more_memory = FALSE;
+
         SERVER_START_REQ( get_security_object )
         {
             req->handle = Object;
-- 
1.5.4.3


--------------040302040701030400020405--



More information about the wine-patches mailing list