post disk eject notification after the file is closed

This commit is contained in:
Jesús A. Álvarez 2016-05-28 23:43:20 +02:00
parent 78eebcb9f8
commit bcc5ac586e
1 changed files with 2 additions and 1 deletions

View File

@ -475,7 +475,6 @@ LOCALFUNC tMacErr vSonyEject0(tDrive Drive_No, blnr deleteit) {
NSDictionary *userInfo = @{@"path": DriveNames[Drive_No],
@"drive": @(Drive_No),
@"delete": @(deleteit)};
[[NSNotificationCenter defaultCenter] postNotificationName:[Emulator sharedEmulator].ejectDiskNotification object:[Emulator sharedEmulator] userInfo:userInfo];
DiskEjectedNotify(Drive_No);
#if HaveAdvisoryLocks
@ -501,6 +500,8 @@ LOCALFUNC tMacErr vSonyEject0(tDrive Drive_No, blnr deleteit) {
}
}
#endif
[[NSNotificationCenter defaultCenter] postNotificationName:[Emulator sharedEmulator].ejectDiskNotification object:[Emulator sharedEmulator] userInfo:userInfo];
return mnvm_noErr;
}