https://bugs.winehq.org/show_bug.cgi?id=38220
--- Comment #3 from Bruno Jesus 00cpxxx@gmail.com --- This simple change makes it work for me, changing the variable with its value. Any hints?
diff --git a/dlls/kernel32/path.c b/dlls/kernel32/path.c index 7fe229f..8f590da 100644 --- a/dlls/kernel32/path.c +++ b/dlls/kernel32/path.c @@ -623,7 +623,7 @@ DWORD WINAPI GetTempPathW( DWORD count, LPWSTR path ) { lstrcpynW(path, tmp_path, count); /* the remaining buffer must be zeroed */ - memset(path + ret, 0, (count - ret) * sizeof(WCHAR)); + memset(path + ret, 0, (260 - ret) * sizeof(WCHAR)); ret--; /* return length without 0 */ } else if (count)