Commit 27c88fc4 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

netstat: Use the ARRAY_SIZE() macro.

parent 41c0219e
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment