mirror of
https://github.com/reactos/reactos.git
synced 2024-10-30 11:35:58 +00:00
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:
parent
4b2acdc21b
commit
b4bbd1348b
|
@ -201,6 +201,10 @@ CreateBitmapIndirect(const BITMAP *pbm)
|
|||
pbm->bmBitsPixel,
|
||||
pbm->bmBits);
|
||||
}
|
||||
else
|
||||
{
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
}
|
||||
|
||||
return bitmap;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue