WaitForMultipleObjects loops forever if passed an array of size zero

Alexandre Julliard julliard at winehq.org
Wed Jun 25 19:16:21 CDT 2003


Troy Rollo <wine at troy.rollo.name> writes:

> @@ -412,7 +412,7 @@
>  {
>      int ret, cookie;
>  
> -    if (count > MAXIMUM_WAIT_OBJECTS) return STATUS_INVALID_PARAMETER_1;
> +    if (count > MAXIMUM_WAIT_OBJECTS || count <= 0) return 
> STATUS_INVALID_PARAMETER_1;

This is wrong, 0 is a valid count, and shouldn't cause an infinite
loop. You'll need to debug this some more.

-- 
Alexandre Julliard
julliard at winehq.com



More information about the wine-devel mailing list