http://bugs.winehq.org/show_bug.cgi?id=16948
--- Comment #12 from Austin English austinenglish@gmail.com 2010-08-05 08:38:56 --- With the precompiled exe, in wine-1.3.0-167-g65d1c99
putting it in ~/.wine/drive_c gives
austin@laptop:~/.wine/drive_c$ wine a.exe fixme:msvcrt:MSVCRT__sopen : pmode 0x60fdc8 ignored filepos: 5 filepos: 0 buffer: �/h�@filepos: 0
and in $HOME, I get a crash:
Backtrace: =>0 0x6858b4a7 MSVCRT_fwrite+0x27(ptr=0x403000, size=0x0005, nmemb=0x0001, file=(nil)) [/home/austin/wine-git/dlls/msvcrt/file.c:2564] in msvcrt (0x0060fe48) 1 0x00401345 main+0x54(argc=0x0001, argv=0x1103a0) [C:/src/winebug-16948/test.c:7] in a (0x0060fe80) 2 0x00401298 in a (+0x1297) (0x0060fe90)
native msvcrt crashes from $HOME as well, though...however, the drive_c results are different:
austin@laptop:~/.wine/drive_c$ wine a.exe filepos: 5 filepos: 0 buffer: hello(filepos: 5
(notice the unreadable characters instead of 'hello').