mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +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:
@@ -201,6 +201,10 @@ CreateBitmapIndirect(const BITMAP *pbm)
|
||||
pbm->bmBitsPixel,
|
||||
pbm->bmBits);
|
||||
}
|
||||
else
|
||||
{
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
}
|
||||
|
||||
return bitmap;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user