http://bugs.winehq.org/show_bug.cgi?id=3613
------- Additional Comments From richard@daijobu.co.uk 2005-18-10 14:25 -------
On Windows temporary files go in either C:\temp, C:\Windows\Temp or
%user%'\temp ... Surprisingly, no -- at least not for tmpfile() in msvcrt.dll I checked on XP and NT4, and the msdn page http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/... is correct -- the tmp file goes in the root directory.
Why does MSVCR80d.dll work?
MS must have changed where they put the tmp file. I guess you have the source code with VC++, so you can take a peek. Alternatively $ WINEDEBUG=file wine encrypt-vc++.exe will tell you all about the files that get opened.
So, what would you suggest I do?
It's probably best to leave Z: mapped to unix \ In the default configuration of wine, the user will have her own personal c:, and will be able to write to c:, so you can simply make sure you start inside c:, like this:
$ cd ~/.wine/drive_c && wine \path\to\encrypt.exe ...