summaryrefslogtreecommitdiffstats
path: root/tools/ddcprobe
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ddcprobe')
-rw-r--r--tools/ddcprobe/ddcxinfos.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/ddcprobe/ddcxinfos.c b/tools/ddcprobe/ddcxinfos.c
index 9888d5896..22ed653b8 100644
--- a/tools/ddcprobe/ddcxinfos.c
+++ b/tools/ddcprobe/ddcxinfos.c
@@ -39,6 +39,8 @@ int main(int argc, char **argv)
vbe_get_edid_ranges(edid, &hmin, &hmax, &vmin, &vmax);
modelines = vbe_get_edid_modelines(edid);
+ if (hmin > hmax || vmin > vmax) return 0;
+
printf(hmin ? "%d-%d kHz HorizSync\n" : "\n", hmin, hmax);
printf(vmin ? "%d-%d Hz VertRefresh\n" : "\n", vmin, vmax);