msvcrt: In _mktemp sixth generated charater always starts with 'a'.

This commit is contained in:
Uwe Bonnes 2006-02-10 15:52:47 +01:00 committed by Alexandre Julliard
parent 5673a58297
commit b53ed5866d
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}