On Mon, Feb 27, 2012 at 11:23, Robert van Herk mijnspamboxje@hotmail.com wrote:
So what actually prevents you from properly implementing this? Especially that Wine already supports temporary files. Search for MSVCRT__O_TEMPORARY
Vitaliy.
I wrote a new version that maps 'D' -> MSVCRT__O_TEMPORARY, and 'T' -> MSVCRT__O_SHORT_LIVED | MSVCRT__O_TEMPORARY
I deliberately included MSVCRT__O_TEMPORARY in 'T': on Windows, when a file is opened in 'T' mode, a subsequent call to GetFileAttributes(tempfile) show that the FILE_ATTRIBUTE_TEMPORARY flag is set, so this seemed like to most sensible thing to do.
I updated the conformance test such that it checks that the file is actually deleted after fclose.
Kind regards, Robert van Herk
You may already be aware of this, but you can request a testbot account to check your patches before submission to wine-patches. See http://testbot.winehq.org/
Frédéric