Paul Bryan Roberts : ntdll: Avoid potential infinite loop.

Alexandre Julliard julliard at winehq.org
Thu Feb 12 11:15:02 CST 2009


Module: wine
Branch: master
Commit: a552587de1b16c95dc53a502e57ce465a232d61c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a552587de1b16c95dc53a502e57ce465a232d61c

Author: Paul Bryan Roberts <pbronline-wine at yahoo.co.uk>
Date:   Thu Feb 12 08:09:17 2009 +0000

ntdll: Avoid potential infinite loop.

---

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

diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c
index 879a324..7d24731 100644
--- a/dlls/ntdll/nt.c
+++ b/dlls/ntdll/nt.c
@@ -293,13 +293,15 @@ NTSTATUS WINAPI NtQueryInformationToken(
         char stack_buffer[256];
         unsigned int server_buf_len = sizeof(stack_buffer);
         void *buffer = stack_buffer;
-        BOOLEAN need_more_memory = FALSE;
+        BOOLEAN need_more_memory;
 
         /* we cannot work out the size of the server buffer required for the
          * input size, since there are two factors affecting how much can be
          * stored in the buffer - number of groups and lengths of sids */
         do
         {
+            need_more_memory = FALSE;
+
             SERVER_START_REQ( get_token_groups )
             {
                 TOKEN_GROUPS *groups = tokeninfo;




More information about the wine-cvs mailing list