Michael Stefaniuc : netstat: Use the ARRAY_SIZE() macro.
Alexandre Julliard
julliard at winehq.org
Wed Aug 15 14:39:56 CDT 2018
Module: wine
Branch: master
Commit: 27c88fc4a60bf62de83c2224fbf152eb01636bdc
URL: https://source.winehq.org/git/wine.git/?a=commit;h=27c88fc4a60bf62de83c2224fbf152eb01636bdc
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Fri Aug 10 12:27:51 2018 +0200
netstat: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: André Hentschel <nerv at dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard at 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);
}
More information about the wine-cvs
mailing list