Loader: Fix bugs in CreateProcess(), which now succeeds on hardware (1.0.0)

This commit is contained in:
Michael Scire 2018-04-24 17:56:32 -06:00
parent 195528adc6
commit 3e36e81e80
4 changed files with 10 additions and 6 deletions

View file

@ -42,7 +42,7 @@ u32 RandomUtils::GetRandomU32(u32 max) {
return GetNext() % max;
}
u32 RandomUtils::GetRandomU64(u64 max) {
u64 RandomUtils::GetRandomU64(u64 max) {
u64 val = GetNext();
val |= ((u64)GetNext()) << 32;
return val % max;