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)
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;
}
......
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