From a11f6b278e4aa6db7e57ccb5f0a64f2e958b219f Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Tue, 24 Jul 2018 00:01:17 +0200 Subject: [PATCH] browseui: Use the ARRAY_SIZE() macro. Signed-off-by: Michael Stefaniuc Signed-off-by: Alexandre Julliard --- dlls/browseui/progressdlg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/browseui/progressdlg.c b/dlls/browseui/progressdlg.c index 7cba7d64646..2355b0cfa08 100644 --- a/dlls/browseui/progressdlg.c +++ b/dlls/browseui/progressdlg.c @@ -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;