mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:05:41 +00:00
Fixed a minor bug.
svn path=/trunk/; revision=2880
This commit is contained in:
parent
d5b7bf25ee
commit
ff2c349be8
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ char *_tempnam(const char *dir,const char *prefix )
|
|||
else
|
||||
d = (char *)dir;
|
||||
|
||||
if (GetTempFileNameA(d, prefix, 0, TempFileName) == 0)
|
||||
if (GetTempFileNameA(d, prefix, 1, TempFileName) == 0)
|
||||
{
|
||||
free(TempFileName);
|
||||
return NULL;
|
||||
|
@ -32,7 +32,7 @@ wchar_t *_wtempnam(const wchar_t *dir,const wchar_t *prefix)
|
|||
else
|
||||
d = (wchar_t *)dir;
|
||||
|
||||
if (GetTempFileNameW(d, prefix, 0, TempFileName) == 0)
|
||||
if (GetTempFileNameW(d, prefix, 1, TempFileName) == 0)
|
||||
{
|
||||
free(TempFileName);
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue