mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
[KERNEL32]
fix a regression introduced in r68797 svn path=/trunk/; revision=68800
This commit is contained in:
parent
4f9474e3ec
commit
6a5d1d8b58
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue