mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 19:26:16 +00:00
[KERNEL32]
fix a regression introduced in r68797 svn path=/trunk/; revision=68800
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user