kernel32: Fix for WritePrivateProfileString Sharing Problem [1/2] (ATTEMPT 3)

Erich Hoover ehoover at mines.edu
Thu Apr 10 20:34:42 CDT 2008


Wow, and then I proceed to attach the wrong file...

Real Name:
    Erich Hoover
Description:
    Fixes incorrect file sharing mode in PROFILE_FlushFile and PROFILE_Open
that result in WritePrivateProfileString failing under certain
circumstances.  This problem is specifically evident in the "Thief: Deadly
Shadows" installer (demo and full), which writes an empty config file that
later causes the game to crash (Bug #5024). This version is functionally
equivalent to Attempt 2; however, it uses NtCreateFile so there is no need
to push and pop the error code.  This version also sets ERROR_SUCCESS, as
opposed to S_OK, for Get* functions.  Conformance test included in part 2.
Changelog:
    kernel32: Fix for WritePrivateProfileString Sharing Problem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-patches/attachments/20080410/e464bc4d/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-for-WritePrivateProfileString-Sharing-Problem.patch
Type: text/x-diff
Size: 6173 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080410/e464bc4d/attachment.patch 


More information about the wine-patches mailing list