From 6784ffcb6356a5883cd1fec1a13b86d960e5c8d0 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Fri, 10 Aug 2018 12:27:50 +0200 Subject: [PATCH] extrac32: Use the ARRAY_SIZE() macro. Signed-off-by: Michael Stefaniuc Signed-off-by: Alexandre Julliard --- programs/extrac32/extrac32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/extrac32/extrac32.c b/programs/extrac32/extrac32.c index 63205e81768..7ab936eec0a 100644 --- a/programs/extrac32/extrac32.c +++ b/programs/extrac32/extrac32.c @@ -118,7 +118,7 @@ static void copy_file(LPCWSTR source, LPCWSTR destination) static const WCHAR overwriteMsg[] = {'O','v','e','r','w','r','i','t','e',' ','"','%','s','"','?',0}; static const WCHAR titleMsg[] = {'E','x','t','r','a','c','t',0}; WCHAR msg[MAX_PATH+100]; - snprintfW(msg, sizeof(msg)/sizeof(msg[0]), overwriteMsg, destination); + snprintfW(msg, ARRAY_SIZE(msg), overwriteMsg, destination); if (MessageBoxW(NULL, msg, titleMsg, MB_YESNO | MB_ICONWARNING) != IDYES) return; } -- 2.11.4.GIT