diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2003-03-24 16:27:59 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2003-03-24 16:27:59 +0000 |
commit | 6e941b25401cae733308044875cf671ec7ff341f (patch) | |
tree | 3f7f234f12e362e95e0810022e1435665e23cdb9 | |
parent | 727c083f5d5dea750e96b56a1cf443914f1e1ba5 (diff) | |
download | xine-lib-6e941b25401cae733308044875cf671ec7ff341f.tar.gz xine-lib-6e941b25401cae733308044875cf671ec7ff341f.tar.bz2 |
fix crash on no-mtrr x86 machines
CVS patchset: 4474
CVS date: 2003/03/24 16:27:59
-rw-r--r-- | src/xine-utils/xine_check.c | 7 |
1 files changed, 3 insertions, 4 deletions
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); } |