Skip to content
Snippets Groups Projects
Commit 77357a3f authored by Panagiotis Christeas's avatar Panagiotis Christeas Committed by Alexandre Julliard
Browse files

Fixed typo in SetGraphicsMode.

parent 9d50dccb
No related branches found
No related tags found
No related merge requests found
......@@ -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.
*/
if (!dc) return 0;
if ((mode > 0) || (mode <= GM_LAST))
if ((mode > 0) && (mode <= GM_LAST))
{
ret = dc->GraphicsMode;
dc->GraphicsMode = mode;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment