mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 05:08:30 +00:00
browseui: Use the wcsdup function instead of reimplementing it.
This commit is contained in:
parent
bd4b49782d
commit
699694b238
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue