kernel32: GetTempFileName should return 0 when the path isn't valid, including test

Oskar Eisemuth patchnow at gmail.com
Mon Mar 30 10:44:35 CDT 2009


GetTempFileName should check the path and should return zero if it
isn't a directory

New patch:
- the LastError is set to ERROR_DIRECTORY
- with new tests with unique 0 and 1

The new test passed on Wine and XP,
again see bug 17875.

---
 dlls/kernel32/path.c       |   10 ++++++++++
 dlls/kernel32/tests/path.c |   36 ++++++++++++++++++++++++++++++++++--
 2 files changed, 44 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ed4b7b1dfc88387ab2930b6d476b3a4c96e5952c.diff
Type: text/x-patch
Size: 3508 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090330/eb057370/attachment-0001.bin>


More information about the wine-patches mailing list