Commit 699694b2 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

browseui: Use the wcsdup function instead of reimplementing it.

parent bd4b4978
......@@ -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)
......
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