[Bug 44310] New: WritePrivateProfileString doesn't check for flush errors

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Jan 5 14:55:16 CST 2018


https://bugs.winehq.org/show_bug.cgi?id=44310

            Bug ID: 44310
           Summary: WritePrivateProfileString doesn't check for flush
                    errors
           Product: Wine
           Version: 3.0-rc5
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: kernel32
          Assignee: wine-bugs at winehq.org
          Reporter: development at winomega.com
      Distribution: ---

Created attachment 60148
  --> https://bugs.winehq.org/attachment.cgi?id=60148
test case

The Windows version of WritePrivateProfileString reports an error if flushing
to file failed.

See attached test case. It tries to write to Z:\test.ini (which is expected to
fail as Z is mapped to /, with no write perms).

Under wine I get no output from the test, and the file isn't created. Failure
warnings do show up in +profile channel log:

trace:profile:PROFILE_Open path: L"Z:\\test.ini"
warn:profile:PROFILE_Open profile file L"Z:\\test.ini" not found
trace:profile:PROFILE_SetString (L"Section1",L"FirstKey",L"It all worked out
OK."):
trace:profile:PROFILE_SetString   creating key
warn:profile:PROFILE_FlushFile could not save profile file L"Z:\\test.ini"
(error was 5)
warn:profile:PROFILE_FlushFile could not save profile file L"Z:\\test.ini"
(error was 5)

Under Windows XP (where Z: drive doesn't exist), I get "failed with error 3"
message.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list