msvcrt: In _mktemp sixth generated charater always starts with 'a'.
This commit is contained in:
parent
5673a58297
commit
b53ed5866d
|
@ -1266,11 +1266,11 @@ char *_mktemp(char *pattern)
|
|||
pattern++;
|
||||
do
|
||||
{
|
||||
*pattern = letter++;
|
||||
if (GetFileAttributesA(retVal) == INVALID_FILE_ATTRIBUTES &&
|
||||
GetLastError() == ERROR_FILE_NOT_FOUND)
|
||||
return retVal;
|
||||
*pattern = letter++;
|
||||
} while(letter != '|');
|
||||
} while(letter <= 'z');
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue