mirror of
https://github.com/reactos/wine.git
synced 2025-02-23 14:24:13 +00:00
netstat: Allocate WCHARs not CHARs (Coverity).
This commit is contained in:
parent
1440c54b99
commit
e7858100d6
@ -90,7 +90,7 @@ static int __cdecl NETSTAT_wprintf(const WCHAR *format, ...)
|
||||
*/
|
||||
|
||||
if (!output_bufW) output_bufW = HeapAlloc(GetProcessHeap(), 0,
|
||||
MAX_WRITECONSOLE_SIZE);
|
||||
MAX_WRITECONSOLE_SIZE*sizeof(WCHAR));
|
||||
if (!output_bufW) {
|
||||
WINE_FIXME("Out of memory - could not allocate 2 x 64K buffers\n");
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user