[PATCH vesa 2/2] Fix check function in VESASaveRestore

Alexandr Shadchin alexandr.shadchin at gmail.com
Sat Aug 18 07:53:34 PDT 2012


Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin at gmail.com>
---
 src/vesa.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/vesa.c b/src/vesa.c
index 8ac77da..11cd26c 100644
--- a/src/vesa.c
+++ b/src/vesa.c
@@ -1626,7 +1626,7 @@ VESASaveRestore(ScrnInfoPtr pScrn, vbeSaveRestoreFunction function)
 {
     VESAPtr pVesa;
 
-    if (MODE_QUERY < 0 || function > MODE_RESTORE)
+    if (function < MODE_QUERY || function > MODE_RESTORE)
 	return (FALSE);
 
     pVesa = VESAGetRec(pScrn);
-- 
1.7.6



More information about the xorg-devel mailing list