Fixed typo in SetGraphicsMode.

This commit is contained in:
P. Christeas 2003-03-27 00:02:00 +00:00 committed by Alexandre Julliard
parent 9d50dccbdc
commit 77357a3f56

View File

@ -940,7 +940,7 @@ INT WINAPI SetGraphicsMode( HDC hdc, INT mode )
* make a lot of sense to me, but that's the way it is. * make a lot of sense to me, but that's the way it is.
*/ */
if (!dc) return 0; if (!dc) return 0;
if ((mode > 0) || (mode <= GM_LAST)) if ((mode > 0) && (mode <= GM_LAST))
{ {
ret = dc->GraphicsMode; ret = dc->GraphicsMode;
dc->GraphicsMode = mode; dc->GraphicsMode = mode;