From 6e941b25401cae733308044875cf671ec7ff341f Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Mon, 24 Mar 2003 16:27:59 +0000 Subject: fix crash on no-mtrr x86 machines CVS patchset: 4474 CVS date: 2003/03/24 16:27:59 --- src/xine-utils/xine_check.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/xine-utils/xine_check.c b/src/xine-utils/xine_check.c index 33519c342..22dde24f0 100644 --- a/src/xine-utils/xine_check.c +++ b/src/xine-utils/xine_check.c @@ -1,5 +1,5 @@ /* -* Copyright (C) 2000-2002 the xine project +* Copyright (C) 2000-2003 the xine project * * This file is part of xine, a free video player. * @@ -175,11 +175,10 @@ xine_health_check_t* xine_health_check_mtrr (xine_health_check_t* hc) { hc->explanation = "Make sure your kernel has MTRR support compiled in."; fd = fopen(file, "r"); - if (fd < 0) { + if (!fd) { set_hc_result (hc, XINE_HEALTH_CHECK_FAIL, "FAILED: mtrr is not enabled."); - } - else { + } else { hc->status = XINE_HEALTH_CHECK_OK; fclose (fd); } -- cgit v1.2.3