mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-19 20:19:13 +12:00
[Kernel] More cleanup
This commit is contained in:
parent
ad07c70772
commit
f100601caf
5 changed files with 32 additions and 31 deletions
|
@ -26,8 +26,8 @@ Handle Kernel::makeProcess() {
|
|||
const Handle resourceLimitHandle = makeObject(KernelObjectType::ResourceLimit);
|
||||
|
||||
// Allocate data
|
||||
objects[processHandle].data = new ProcessData();
|
||||
const auto processData = static_cast<ProcessData*>(objects[processHandle].data);
|
||||
objects[processHandle].data = new Process();
|
||||
const auto processData = objects[processHandle].getData<Process>();
|
||||
|
||||
// Link resource limit object with its parent process
|
||||
objects[resourceLimitHandle].data = &processData->limits;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue