ntdll: Avoid potential infinite loop.

This commit is contained in:
Paul Bryan Roberts 2008-11-03 22:42:42 +00:00 committed by Alexandre Julliard
parent 9988ae3524
commit 01eb926987
1 changed files with 3 additions and 1 deletions

View File

@ -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;