[PATCH] browseui: Use the ARRAY_SIZE() macro

Michael Stefaniuc mstefani at winehq.org
Mon Jul 23 17:01:17 CDT 2018


Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
 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 7cba7d6464..2355b0cfa0 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;
-- 
2.14.4




More information about the wine-devel mailing list