[PATCH] user32: check for valid pointer in CURSORICON_CreateIconFromBMI

Alexandre Julliard julliard at winehq.org
Wed Jun 23 08:32:24 CDT 2010


Wolfram Sang <wolfram at the-dreams.de> writes:

> @@ -884,6 +884,10 @@ static HICON CURSORICON_CreateIconFromBMI( BITMAPINFO *bmi,
>          return 0;
>      }
>  
> +    /* A few Windows versions crash getting NULL, but most simply return it */
> +    if (!bmi)
> +        return 0;

That's not the right place for it, this is an internal function.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list