Signed-off-by: Michael Stefaniuc mstefani@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 8fe5900093..afa211d855 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); }
Am 10.08.2018 um 12:27 schrieb Michael Stefaniuc:
Signed-off-by: Michael Stefaniuc mstefani@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 8fe5900093..afa211d855 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); }
Signed-off-by: André Hentschel nerv@dawncrow.de