Commit 38972345 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

GetDlgItemTextW takes buffer length in WCHARs not bytes.

parent fa241ee7
......@@ -306,7 +306,7 @@ static INT_PTR CALLBACK DlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM l
if(len > 0)
{
sFilter = (WCHAR*)GlobalAlloc(GPTR, (len + 1)*sizeof(WCHAR));
GetDlgItemTextW(hwnd, IDC_FILTER, sFilter, (len + 1)*sizeof(WCHAR));
GetDlgItemTextW(hwnd, IDC_FILTER, sFilter, len + 1);
}
else sFilter = NULL;
UpdateList(hList);
......
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