WritePrivateProfileString can flush win.ini
Mike Hearn
mh at codeweavers.com
Tue Feb 17 15:32:37 CST 2004
Do we have a similar internal cache for registry/profile mappings? I've
assumed not here...
Mike Hearn <mh at codeweavers.com>
WritePrivateProfileString with all NULLs flushes the most recent registry
file mapping , so just ignore it
Index: dlls/kernel/profile.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/profile.c,v
retrieving revision 1.6
diff -u -r1.6 profile.c
--- dlls/kernel/profile.c 7 Feb 2004 02:24:15 -0000 1.6
+++ dlls/kernel/profile.c 17 Feb 2004 21:16:30 -0000
@@ -1447,6 +1447,11 @@
{
BOOL ret = FALSE;
+ /* All NULLs means flush the cache of the most recent registry file mapping on 2k+
+ * This always returns FALSE, regardless of success or failure.
+ */
+ if (!section && !entry && !string && !filename) return FALSE;
+
RtlEnterCriticalSection( &PROFILE_CritSect );
if (PROFILE_Open( filename ))
More information about the wine-patches
mailing list