Krzysztof Foltman wrote:

The bugfix will be sent as soon as the previous bugfixes are accepted.
It looks more or less like this:

This fixes the installer for me. Arren's original problem running KeyNote should be fixed with the attached patch... can you confirm if it fixes the problem or not Arren?

Mike
Index: dlls/kernel/profile.c
===================================================================
RCS file: /home/mike/src/wine-cvs/wine/dlls/kernel/profile.c,v
retrieving revision 1.28
diff -u -p -r1.28 profile.c
--- dlls/kernel/profile.c	9 Sep 2005 10:19:45 -0000	1.28
+++ dlls/kernel/profile.c	9 Oct 2005 07:28:59 -0000
@@ -1112,10 +1112,12 @@ static int PROFILE_GetPrivateProfileStri
 	else 
 	    /* PROFILE_GetString can handle the 'entry == NULL' case */
             ret = PROFILE_GetString( section, entry, pDefVal, buffer, len, win32 );
-    } else {
+    } else if (buffer) {
        lstrcpynW( buffer, pDefVal, len );
        ret = strlenW( buffer );
     }
+    else
+       ret = 0;
 
     RtlLeaveCriticalSection( &PROFILE_CritSect );
 


Reply via email to