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();