[Bug 3613] tmpfile() not working with MinGW application

Wine Bugs wine-bugs at winehq.org
Tue Oct 18 14:25:15 CDT 2005


http://bugs.winehq.org/show_bug.cgi?id=3613





------- Additional Comments From richard at 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/_crt_tmpfile.asp
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 ...



-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list