GetTempFileName should return 0 when the path isn't valid

Oskar Eisemuth patchnow at gmail.com
Sun Mar 29 12:13:20 CDT 2009


Hello

>> GetTempFileName should check the path and should return zero if it isn't a directory.
>> See Bug 17875
>>
>> ---
>>  dlls/kernel32/path.c |   10 ++++++++++
>>  1 files changed, 10 insertions(+), 0 deletions(-)
>
> Can you add a testcase for this?

That would need something like an non existent subpath or path?

I guess it would be something like a copy of NONDIR_SHORT.

sprintf(tmpstr,"%s%s",tmppath, NONDIR_SHORT);
ok((id=GetTempFileNameA(tempstr,"path",0,newdir)),"GetTempFileNameA failed\n");

--
Oskar



More information about the wine-devel mailing list