Temporarily disable NtClose for EmuHandle instances.

It was causing symbolic link entries to corrupt, there are issues with EmuFile, EmuNtOpenSymbolicLinkObject and other related areas that need to be addressed before this can be re-enabled
This commit is contained in:
Luke Usher 2016-08-24 20:47:39 +01:00
parent 5f3a8c4c44
commit f2c20e6e07
1 changed files with 5 additions and 1 deletions

View File

@ -2977,7 +2977,11 @@ XBSYSAPI EXPORTNUM(187) xboxkrnl::NTSTATUS NTAPI xboxkrnl::NtClose
{
EmuHandle *iEmuHandle = EmuHandleToPtr(Handle);
delete iEmuHandle;
// HACK: Do not delete emuhandle
// There is an issue with EmuHandle/EmuNtObject causing referencing counting to not function
// Consider translating the entirity of EmuFile & EmuKrnl from Dxbx
//delete iEmuHandle;
EmuWarning("EmuKrnl::NtClose : EmuHandle not deleted");
ret = STATUS_SUCCESS;
}