Fixed SetMessageQueue32 to return FALSE, not TRUE, when called with

an invalid size parameter.
This commit is contained in:
Per Ångström 1998-11-14 11:29:02 +00:00 committed by Alexandre Julliard
parent 690d37967e
commit d772adab0f
1 changed files with 1 additions and 1 deletions

View File

@ -809,7 +809,7 @@ BOOL32 WINAPI SetMessageQueue32( INT32 size )
TRACE(msg,"task %04x size %i\n", GetCurrentTask(), size);
if ((size > MAX_QUEUE_SIZE) || (size <= 0)) return TRUE;
if ((size > MAX_QUEUE_SIZE) || (size <= 0)) return FALSE;
if( !(hNewQueue = QUEUE_CreateMsgQueue( size )))
{