http://bugs.winehq.org/show_bug.cgi?id=22456
Summary: Wrong caching with INI functions Product: Wine Version: 1.1.41 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 AssignedTo: wine-bugs@winehq.org ReportedBy: gabmoa@yahoo.it
Created an attachment (id=27506) --> (http://bugs.winehq.org/attachment.cgi?id=27506) Simple test program
I've written a program to manage some ini file and I've seen a wrong behaviour in wine. The origin of the problem I think is the cache system. I've isolated the problem with a very simple program. The operations involved on button press are:
1) Write the file test.ini with key value = WRONG (with WritePrivateProfileStringA) 1a) Message on screen (ok to continue) 2) Delete ini file 3) Read the file test.ini (it doesn't exists now) with the default value = RIGHT (with GetPrivateProfileStringA)
In Windows the result is RIGHT but in wine is WRONG, because it reads the cached value! Only to obtain the compatibility with my software I've changed my wine source in this way:
dlls/kernel32/profile.c
BOOL WINAPI WritePrivateProfileStringW( LPCWSTR section, LPCWSTR entry, LPCWSTR string, LPCWSTR filename ) {
...
ret = PROFILE_SetString( section, entry, string, FALSE); // PROFILE_FlushFile(); // COMMENTED if (CurProfile) PROFILE_ReleaseFile(); // INSERTED
...
}
NOTE: I didn't test if other WritePrivateProfile* are affected by this problem or if the problem instead is in the GetPrivateProfile*
http://bugs.winehq.org/show_bug.cgi?id=22456
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, patch, testcase
http://bugs.winehq.org/show_bug.cgi?id=22456
Frédéric Delanoy frederic.delanoy@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |frederic.delanoy@gmail.com
--- Comment #1 from Frédéric Delanoy frederic.delanoy@gmail.com 2011-09-17 13:33:51 CDT --- Does it still happen in current wine (1.3.28 or later)?
http://bugs.winehq.org/show_bug.cgi?id=22456
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com
--- Comment #2 from Bruno Jesus 00cpxxx@gmail.com 2011-09-18 18:41:45 CDT --- Still present in 1.3.28.
http://bugs.winehq.org/show_bug.cgi?id=22456
Frédéric Delanoy frederic.delanoy@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #3 from Frédéric Delanoy frederic.delanoy@gmail.com 2011-09-19 01:52:56 CDT --- Confirmed as per comment 2
http://bugs.winehq.org/show_bug.cgi?id=22456
Julian Rüger jr98@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jr98@gmx.net
http://bugs.winehq.org/show_bug.cgi?id=22456
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #4 from Austin English austinenglish@gmail.com 2012-03-28 12:50:08 CDT --- http://source.winehq.org/git/wine.git/commitdiff/40f0145d002404ca75c3f998437...
http://bugs.winehq.org/show_bug.cgi?id=22456
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |40f0145d002404ca75c3f998437 | |df1556df45677
http://bugs.winehq.org/show_bug.cgi?id=22456
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org 2012-03-30 13:35:46 CDT --- Closing bugs fixed in 1.5.1.
http://bugs.winehq.org/show_bug.cgi?id=22456
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |1.4.x
http://bugs.winehq.org/show_bug.cgi?id=22456
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.4.x |---