Commit fc403eb5 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

Fix buffer overflow in PathSetDlgItemPathW that led to a trashed

stack.
parent a355c84d
......@@ -3500,7 +3500,7 @@ VOID WINAPI PathSetDlgItemPathW(HWND hDlg, int id, LPCWSTR lpszPath)
return;
if (lpszPath)
strncpyW(path, lpszPath, sizeof(path));
lstrcpynW(path, lpszPath, sizeof(path) / sizeof(WCHAR));
else
path[0] = '\0';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment