Accept empty values in ini files.

Aric Stewart aric at codeweavers.com
Thu Apr 8 01:33:44 CDT 2004


Empty values need to be perserved as empty values and not assumed to be 
nonexistant values.

-aric
-------------- next part --------------
Index: dlls/kernel/profile.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/profile.c,v
retrieving revision 1.8
diff -u -w -r1.8 profile.c
--- dlls/kernel/profile.c	2 Apr 2004 19:39:37 -0000	1.8
+++ dlls/kernel/profile.c	8 Apr 2004 06:31:48 -0000
@@ -458,7 +458,7 @@
             if (!(key = HeapAlloc( GetProcessHeap(), 0, sizeof(*key) + len * sizeof(WCHAR) ))) break;
             memcpy(key->name, szLineStart, len * sizeof(WCHAR));
             key->name[len] = '\0';
-            if (szValueStart && szValueStart < szLineEnd)
+            if (szValueStart)
             {
                 len = (int)(szLineEnd - szValueStart);
                 key->value = HeapAlloc( GetProcessHeap(), 0, (len + 1) * sizeof(WCHAR) );


More information about the wine-patches mailing list