From 6a5d1d8b5817401ebda89a8f53cd8a775da5c2cc Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Sun, 23 Aug 2015 08:19:39 +0000 Subject: [PATCH] [KERNEL32] fix a regression introduced in r68797 svn path=/trunk/; revision=68800 --- reactos/dll/win32/kernel32/client/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/kernel32/client/path.c b/reactos/dll/win32/kernel32/client/path.c index 419f8320702..21415a5e821 100644 --- a/reactos/dll/win32/kernel32/client/path.c +++ b/reactos/dll/win32/kernel32/client/path.c @@ -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));