[ADVAPI32]
authorThomas Faber <thomas.faber@reactos.org>
Tue, 29 Jul 2014 21:24:24 +0000 (21:24 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Tue, 29 Jul 2014 21:24:24 +0000 (21:24 +0000)
- Fix RegQueryInfoKeyW as per CORE-1136

svn path=/trunk/; revision=63776

reactos/dll/win32/advapi32/reg/reg.c

index 6ad365a..bd9ae62 100644 (file)
@@ -3903,7 +3903,7 @@ RegQueryInfoKeyW(HKEY hKey,
                                        NULL,
                                        0,
                                        lpcbSecurityDescriptor);
                                        NULL,
                                        0,
                                        lpcbSecurityDescriptor);
-        if (!NT_SUCCESS(Status))
+        if (!NT_SUCCESS(Status) && Status != STATUS_BUFFER_TOO_SMALL)
         {
             if (lpClass != NULL)
             {
         {
             if (lpClass != NULL)
             {