[KERNEL32]

Fix buffer overrun

svn path=/trunk/; revision=53791
This commit is contained in:
Pierre Schweitzer 2011-09-21 17:13:28 +00:00
parent 374497d4a6
commit 8ddfcc0ce0

View file

@ -1370,7 +1370,7 @@ GetTempFileNameW(IN LPCWSTR lpPathName,
} while (*Let != 0);
/* Append extension & UNICODE_NULL */
memmove(TempFileName, Ext, sizeof(Ext) + sizeof(WCHAR));
memmove(TempFileName, Ext, sizeof(Ext));
/* If user provided its ID, just return */
if (uUnique)