From 77357a3f56549ca3035a0eaecb0a6762b87d3a41 Mon Sep 17 00:00:00 2001 From: "P. Christeas" Date: Thu, 27 Mar 2003 00:02:00 +0000 Subject: [PATCH] Fixed typo in SetGraphicsMode. --- objects/dc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objects/dc.c b/objects/dc.c index ae9d254b730..84a935fc0f5 100644 --- a/objects/dc.c +++ b/objects/dc.c @@ -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;