Commit b53ed586 authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard

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

parent 5673a582
...@@ -1266,11 +1266,11 @@ char *_mktemp(char *pattern) ...@@ -1266,11 +1266,11 @@ char *_mktemp(char *pattern)
pattern++; pattern++;
do do
{ {
*pattern = letter++;
if (GetFileAttributesA(retVal) == INVALID_FILE_ATTRIBUTES && if (GetFileAttributesA(retVal) == INVALID_FILE_ATTRIBUTES &&
GetLastError() == ERROR_FILE_NOT_FOUND) GetLastError() == ERROR_FILE_NOT_FOUND)
return retVal; return retVal;
*pattern = letter++; } while(letter <= 'z');
} while(letter != '|');
return NULL; return NULL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment