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

xcopy: Allocate more space for the W buffer (Coverity).

parent 7c8c90ab
...@@ -114,7 +114,7 @@ static int __cdecl XCOPY_wprintf(const WCHAR *format, ...) { ...@@ -114,7 +114,7 @@ static int __cdecl XCOPY_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