From 7e1ef167362646d498007af095b6e9b08f615462 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Wed, 5 Sep 2007 16:52:45 +0000 Subject: [PATCH] fix some bugs in the linux version (not working yet) svn path=/trunk/; revision=28880 --- reactos/tools/sysreg/os_support.cpp | 2 +- reactos/tools/sysreg/rosboot_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/tools/sysreg/os_support.cpp b/reactos/tools/sysreg/os_support.cpp index 725e931ccf2..b9077067c81 100644 --- a/reactos/tools/sysreg/os_support.cpp +++ b/reactos/tools/sysreg/os_support.cpp @@ -126,7 +126,7 @@ namespace System_ void OsSupport::delayExecution(long value) { - sleep( (clock_t)value * CLOCKS_PER_SEC ); + sleep( value ); } diff --git a/reactos/tools/sysreg/rosboot_test.cpp b/reactos/tools/sysreg/rosboot_test.cpp index 1412597e4ba..396535e37b4 100644 --- a/reactos/tools/sysreg/rosboot_test.cpp +++ b/reactos/tools/sysreg/rosboot_test.cpp @@ -717,7 +717,7 @@ namespace Sysreg_ return false; } char buffer[128]; - if (!fread(buffer, sizeof(buffer), 1, file)) + if (!fread(buffer, 1, sizeof(buffer), file)) { cerr << "Error: pid file w/o pid!!! " << endl; cleanup();