Author: greatlrd
Date: Sun May 11 05:41:06 2008
New Revision: 33434
URL:
http://svn.reactos.org/svn/reactos?rev=33434&view=rev
Log:
adding SetLastError(ERROR_INVALID_PARAMETER) when CreateBitmapIndirect fail, sugestion
from filip we should do that as well.
thx filip.
Modified:
trunk/reactos/dll/win32/gdi32/objects/bitmap.c
Modified: trunk/reactos/dll/win32/gdi32/objects/bitmap.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/bi…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/bitmap.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdi32/objects/bitmap.c [iso-8859-1] Sun May 11 05:41:06 2008
@@ -200,6 +200,10 @@
pbm->bmPlanes,
pbm->bmBitsPixel,
pbm->bmBits);
+ }
+ else
+ {
+ SetLastError(ERROR_INVALID_PARAMETER);
}
return bitmap;