From df8ae8942ee34fa83c34919d6f13c8749f9208f0 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sun, 9 May 1999 16:15:28 +0000 Subject: [PATCH] Fixed request size for alloc_console and free_console. --- win32/console.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/win32/console.c b/win32/console.c index bb0bf2ead87..381e4df35a0 100644 --- a/win32/console.c +++ b/win32/console.c @@ -429,7 +429,8 @@ DWORD WINAPI GetLargestConsoleWindowSize( HANDLE hConsoleOutput ) */ BOOL WINAPI FreeConsole(VOID) { - CLIENT_SendRequest( REQ_FREE_CONSOLE, -1, 0 ); + struct free_console_request req; + CLIENT_SendRequest( REQ_FREE_CONSOLE, -1, 1, &req, sizeof(req) ); return !CLIENT_WaitReply( NULL, NULL, 0 ); } @@ -550,7 +551,7 @@ BOOL WINAPI AllocConsole(VOID) DWORD ret; TRACE(console,"()\n"); - CLIENT_SendRequest( REQ_ALLOC_CONSOLE, -1, 0 ); + CLIENT_SendRequest( REQ_ALLOC_CONSOLE, -1, 1, &req, sizeof(req) ); ret = CLIENT_WaitReply( NULL, NULL, 0 ); if (ret != ERROR_SUCCESS) { /* Hmm, error returned by server when we already have an