Fixed request size for alloc_console and free_console.

This commit is contained in:
Alexandre Julliard 1999-05-09 16:15:28 +00:00
parent dd93d25577
commit df8ae8942e
1 changed files with 3 additions and 2 deletions

View File

@ -429,7 +429,8 @@ DWORD WINAPI GetLargestConsoleWindowSize( HANDLE hConsoleOutput )
*/ */
BOOL WINAPI FreeConsole(VOID) 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 ); return !CLIENT_WaitReply( NULL, NULL, 0 );
} }
@ -550,7 +551,7 @@ BOOL WINAPI AllocConsole(VOID)
DWORD ret; DWORD ret;
TRACE(console,"()\n"); 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 ); ret = CLIENT_WaitReply( NULL, NULL, 0 );
if (ret != ERROR_SUCCESS) { if (ret != ERROR_SUCCESS) {
/* Hmm, error returned by server when we already have an /* Hmm, error returned by server when we already have an