[KERNEL32]

fix a regression introduced in r68797

svn path=/trunk/; revision=68800
This commit is contained in:
Christoph von Wittich 2015-08-23 08:19:39 +00:00
parent 4f9474e3ec
commit 6a5d1d8b58

View file

@ -2118,7 +2118,7 @@ GetTempPathW(IN DWORD count,
if (count >= ret)
{
lstrcpynW(path, tmp_path, count);
lstrcpynW(path, full_tmp_path, count);
/* the remaining buffer must be zeroed up to 32766 bytes in XP or 32767
* bytes after it, we will assume the > XP behavior for now */
memset(path + ret, 0, (min(count, 32767) - ret) * sizeof(WCHAR));