Commit 7aafaf56 authored by Alexandr Shadchin's avatar Alexandr Shadchin Committed by Peter Hutterer

Fix check function in VESASaveRestore

Signed-off-by: default avatarAlexandr Shadchin <Alexandr.Shadchin@gmail.com>
Reviewed-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 4cb7fa81
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment