This commit is contained in:
Alex
2022-12-26 08:39:27 +02:00
parent f07c10a2ee
commit 98d58cf655
3 changed files with 17 additions and 7 deletions

View File

@ -19,6 +19,7 @@ namespace Execute
SpawnData ret = {.Status = ExStatus::Unknown,
.Process = nullptr,
.Thread = nullptr};
FileSystem::FILE *ExFile = vfs->Open(Path);
if (ExFile->Status == FileSystem::FileStatus::OK)
{
@ -121,7 +122,7 @@ namespace Execute
if (ELFHeader->e_type == ET_EXEC)
{
ELFLoadExec(BaseImage, ELFHeader, pva, &ret, Path, Process, argv, envp, Arch, Comp);
ELFLoadExec(BaseImage, ExFile->Node->Length, ELFHeader, pva, &ret, Path, Process, argv, envp, Arch, Comp);
goto Exit;
}
else if (ELFHeader->e_type == ET_DYN)