mscms: One more LastError code fixed.

Saulius Krasuckas saulius2 at ar.fi.lt
Sat Feb 25 09:13:08 CST 2006


* On Sat, 25 Feb 2006, Saulius Krasuckas wrote:
> 
> +++ b/dlls/mscms/profile.c
> @@ -423,6 +423,12 @@ BOOL WINAPI GetStandardColorSpaceProfile
>          return FALSE;
>      }
>
> +    if (!profile)
> +    {
> +        SetLastError( ERROR_INSUFFICIENT_BUFFER );
> +        return FALSE;
> +    }
> +
>      GetColorDirectoryW( machine, rgbprofile, &len );

Patch should be improved by fixing (!profile) checks in code that already 
exists.



More information about the wine-patches mailing list