Commit 01eb9269 authored by Paul Bryan Roberts's avatar Paul Bryan Roberts Committed by Alexandre Julliard

ntdll: Avoid potential infinite loop.

parent 9988ae35
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment