Module: wine Branch: master Commit: 699694b23886044612250d0c11c5809da46a5c06 URL: https://gitlab.winehq.org/wine/wine/-/commit/699694b23886044612250d0c11c5809...
Author: Alex Henrie alexhenrie24@gmail.com Date: Wed Nov 1 23:36:14 2023 -0600
browseui: Use the wcsdup function instead of reimplementing it.
---
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)