MSVCRT: _tempnam not working with environment variables

Phil Lodwick Phil.Lodwick at EFI.COM
Wed Nov 16 10:03:57 CST 2005


Andreas Mohr pointed out my patches had <CR>s in them.  Sorry about that.
Here is a resend.

One of these days I will get the hang of this!

Phil

-----Original Message-----
From: wine-patches-bounces at winehq.org
[mailto:wine-patches-bounces at winehq.org] On Behalf Of Phil Lodwick
Sent: Tuesday, November 15, 2005 4:47 PM
To: wine-patches at winehq.org
Subject: MSVCRT: _tempnam not working with environment variables

On 8-Nov-05 I submitted a patch to msvcrt _tempnam.  On the suggestion of
James Hawkins I have written a conformance test that shows my previous patch
did not go far enough.  Previously _tempnam just used GetTempFileNameA and
ignored environment variables.  My previous patch added support for
environment variables, but still called GetTempFileNameA.  However,
GetTempFileNameA truncated the supplied prefix to 3 characters which _tempnam
does not.  My new implementation removes the dependency on GetTempFileNameA.

Phil

----

ChangeLog:
_tempnam uses the TMP environment variable and does not truncate prefix


-------------- next part --------------
A non-text attachment was scrubbed...
Name: file.diff
Type: application/octet-stream
Size: 2836 bytes
Desc: file.diff
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20051116/1556aa89/file.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tests.file.diff
Type: application/octet-stream
Size: 3948 bytes
Desc: tests.file.diff
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20051116/1556aa89/tests.file.obj


More information about the wine-patches mailing list