[ros-diffs] [greatlrd] 33434: adding SetLastError(ERROR_INVALID_PARAMETER) when CreateBitmapIndirect fail, sugestion from filip we should do that as well. thx filip.
greatlrd at svn.reactos.org
greatlrd at svn.reactos.org
Sun May 11 12:41:06 CEST 2008
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/bitmap.c?rev=33434&r1=33433&r2=33434&view=diff
==============================================================================
--- 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;
More information about the Ros-diffs
mailing list