Commit e7858100 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

netstat: Allocate WCHARs not CHARs (Coverity).

parent 1440c54b
...@@ -90,7 +90,7 @@ static int __cdecl NETSTAT_wprintf(const WCHAR *format, ...) ...@@ -90,7 +90,7 @@ static int __cdecl NETSTAT_wprintf(const WCHAR *format, ...)
*/ */
if (!output_bufW) output_bufW = HeapAlloc(GetProcessHeap(), 0, if (!output_bufW) output_bufW = HeapAlloc(GetProcessHeap(), 0,
MAX_WRITECONSOLE_SIZE); MAX_WRITECONSOLE_SIZE*sizeof(WCHAR));
if (!output_bufW) { if (!output_bufW) {
WINE_FIXME("Out of memory - could not allocate 2 x 64K buffers\n"); WINE_FIXME("Out of memory - could not allocate 2 x 64K buffers\n");
return 0; return 0;
......
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