mirror of
https://github.com/reactos/wine.git
synced 2025-02-03 02:32:41 +00:00
Fixed SetMessageQueue32 to return FALSE, not TRUE, when called with
an invalid size parameter.
This commit is contained in:
parent
690d37967e
commit
d772adab0f
@ -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 )))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user