From: Alex Henrie alexhenrie24@gmail.com
--- dlls/browseui/progressdlg.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/dlls/browseui/progressdlg.c b/dlls/browseui/progressdlg.c index 1e22ef636e1..9834a4089f2 100644 --- a/dlls/browseui/progressdlg.c +++ b/dlls/browseui/progressdlg.c @@ -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)