mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-05 23:11:47 +00:00
browseui: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0b88a53acd
commit
a11f6b278e
|
@ -114,7 +114,7 @@ static LPWSTR load_string(HINSTANCE hInstance, UINT uiResourceId)
|
|||
WCHAR string[256];
|
||||
LPWSTR ret;
|
||||
|
||||
LoadStringW(hInstance, uiResourceId, string, sizeof(string)/sizeof(string[0]));
|
||||
LoadStringW(hInstance, uiResourceId, string, ARRAY_SIZE(string));
|
||||
ret = HeapAlloc(GetProcessHeap(), 0, (strlenW(string) + 1) * sizeof(WCHAR));
|
||||
strcpyW(ret, string);
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue