netstat: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: André Hentschel <nerv@dawncrow.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
41c0219e05
commit
27c88fc4a6
@ -144,7 +144,7 @@ static WCHAR *NETSTAT_load_message(UINT id) {
|
|||||||
static WCHAR msg[2048];
|
static WCHAR msg[2048];
|
||||||
static const WCHAR failedW[] = {'F','a','i','l','e','d','!','\0'};
|
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());
|
WINE_FIXME("LoadString failed with %d\n", GetLastError());
|
||||||
strcpyW(msg, failedW);
|
strcpyW(msg, failedW);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user