Commit d772adab authored by Per Ångström's avatar Per Ångström Committed by Alexandre Julliard

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

an invalid size parameter.
parent 690d3796
......@@ -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 )))
{
......
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