Windows: fix buffer overrun caused by wrong use of wmemset

This commit is contained in:
Mounir IDRASSI 2022-01-16 21:02:09 +01:00
parent 768effbe96
commit 70e9868c8e
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F

View File

@ -3746,7 +3746,7 @@ BOOL CALLBACK PageDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
SetWindowTextW (GetDlgItem (GetParent (hwndDlg), IDC_BOX_TITLE), finalMsg);
wmemset (finalMsg, 0, sizeof (finalMsg));
memset (finalMsg, 0, sizeof (finalMsg));
try
{
StringCbPrintfW (finalMsg, sizeof(finalMsg),