adding SetLastError(ERROR_INVALID_PARAMETER) when CreateBitmapIndirect fail, sugestion from filip we should do that as well.

thx filip.

svn path=/trunk/; revision=33434
This commit is contained in:
Magnus Olsen 2008-05-11 10:41:06 +00:00
parent 4b2acdc21b
commit b4bbd1348b

View file

@ -201,6 +201,10 @@ CreateBitmapIndirect(const BITMAP *pbm)
pbm->bmBitsPixel,
pbm->bmBits);
}
else
{
SetLastError(ERROR_INVALID_PARAMETER);
}
return bitmap;
}