From b4bbd1348bc544c3d954376ee6adcdf67d77aacf Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sun, 11 May 2008 10:41:06 +0000 Subject: [PATCH] adding SetLastError(ERROR_INVALID_PARAMETER) when CreateBitmapIndirect fail, sugestion from filip we should do that as well. thx filip. svn path=/trunk/; revision=33434 --- reactos/dll/win32/gdi32/objects/bitmap.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reactos/dll/win32/gdi32/objects/bitmap.c b/reactos/dll/win32/gdi32/objects/bitmap.c index b87094d9d88..da07b3b7487 100644 --- a/reactos/dll/win32/gdi32/objects/bitmap.c +++ b/reactos/dll/win32/gdi32/objects/bitmap.c @@ -201,6 +201,10 @@ CreateBitmapIndirect(const BITMAP *pbm) pbm->bmBitsPixel, pbm->bmBits); } + else + { + SetLastError(ERROR_INVALID_PARAMETER); + } return bitmap; }