RegEnumValueA fix

François Gouget fgouget at codeweavers.com
Mon Jan 14 16:58:38 CST 2002


Changelog:

   François Gouget <fgouget at codeweavers.com>

 * dlls/advapi32/registry.c

   RegEnumValueA: an empty buffer is enough if the name is empty


-- 
François Gouget
fgouget at codeweavers.com
-------------- next part --------------
Index: dlls/advapi32/registry.c
===================================================================
RCS file: /home/wine/wine/dlls/advapi32/registry.c,v
retrieving revision 1.30
diff -u -r1.30 registry.c
--- dlls/advapi32/registry.c	2001/12/05 22:18:48	1.30
+++ dlls/advapi32/registry.c	2002/01/14 17:27:36
@@ -1100,7 +1100,7 @@
             DWORD len;
 
             RtlUnicodeToMultiByteSize( &len, info->Name, info->NameLength );
-            if (len >= *val_count)
+            if (len > *val_count)
             {
                 status = STATUS_BUFFER_OVERFLOW;
                 goto done;


More information about the wine-patches mailing list