MSVCRT: _tempnam not working with environment variables

Phil Lodwick Phil.Lodwick at EFI.COM
Tue Nov 15 16:46:37 CST 2005


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: 2939 bytes
Desc: file.diff
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20051115/2cf6d12f/file.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tests.file.diff
Type: application/octet-stream
Size: 4073 bytes
Desc: tests.file.diff
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20051115/2cf6d12f/tests.file.obj


More information about the wine-patches mailing list