browseui: Use the wcsdup function instead of reimplementing it.

This commit is contained in:
Alex Henrie 2023-11-01 23:36:14 -06:00 committed by Alexandre Julliard
parent bd4b49782d
commit 699694b238

View file

@ -100,12 +100,8 @@ struct create_params
static LPWSTR load_string(HINSTANCE hInstance, UINT uiResourceId)
{
WCHAR string[256];
LPWSTR ret;
LoadStringW(hInstance, uiResourceId, string, ARRAY_SIZE(string));
ret = malloc((lstrlenW(string) + 1) * sizeof(WCHAR));
lstrcpyW(ret, string);
return ret;
return wcsdup(string);
}
static void set_progress_marquee(ProgressDialog *This)