Signed-off-by: Alexandr Shadchin <alexandr.shadc...@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 _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel