Minor fixes to Symbolic Link emulation

This commit is contained in:
Luke Usher 2016-08-20 13:50:12 +01:00
parent 71a059104b
commit de0c650d8d
2 changed files with 5 additions and 2 deletions

View File

@ -297,7 +297,10 @@ NTSTATUS EmuNtSymbolicLinkObject::Init(std::string aSymbolicLinkName, std::strin
void EmuNtSymbolicLinkObject::Free()
{
return;
if (DriveLetter >= 'A' && DriveLetter <= 'Z') {
NtSymbolicLinkObjects[DriveLetter - 'A'] = NULL;
NtDll::NtClose(RootDirectoryHandle);
}
}
bool CxbxMountUtilityDrive(bool formatClean)

View File

@ -202,7 +202,7 @@ class EmuNtObject
private:
// Reference count
ULONG RefCount;
LONG RefCount;
};
// ******************************************************************