Fix buffer overflow in PathSetDlgItemPathW that led to a trashed
stack.
This commit is contained in:
parent
a355c84d28
commit
fc403eb5e0
|
@ -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';
|
||||
|
||||
|
|
Loading…
Reference in New Issue