Michael Stefaniuc : netstat: Use the ARRAY_SIZE() macro.
Module: wine Branch: master Commit: 27c88fc4a60bf62de83c2224fbf152eb01636bdc URL: https://source.winehq.org/git/wine.git/?a=commit;h=27c88fc4a60bf62de83c2224f... Author: Michael Stefaniuc <mstefani(a)winehq.org> Date: Fri Aug 10 12:27:51 2018 +0200 netstat: Use the ARRAY_SIZE() macro. Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> Signed-off-by: André Hentschel <nerv(a)dawncrow.de> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- programs/netstat/netstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/netstat/netstat.c b/programs/netstat/netstat.c index 8fe5900..afa211d 100644 --- a/programs/netstat/netstat.c +++ b/programs/netstat/netstat.c @@ -144,7 +144,7 @@ static WCHAR *NETSTAT_load_message(UINT id) { static WCHAR msg[2048]; static const WCHAR failedW[] = {'F','a','i','l','e','d','!','\0'}; - if (!LoadStringW(GetModuleHandleW(NULL), id, msg, sizeof(msg)/sizeof(WCHAR))) { + if (!LoadStringW(GetModuleHandleW(NULL), id, msg, ARRAY_SIZE(msg))) { WINE_FIXME("LoadString failed with %d\n", GetLastError()); strcpyW(msg, failedW); }
participants (1)
-
Alexandre Julliard