[NTVDM]: Update the read/write flag of the mounted image: fixes errors when trying to write to the read-only image. Now we correctly return a "write-protected" disk error.

svn path=/trunk/; revision=69382
This commit is contained in:
Hermès Bélusca-Maïto 2015-09-27 17:39:29 +00:00
parent d7981400fd
commit d52803c9e7

View file

@ -581,6 +581,10 @@ MountDisk(IN DISK_TYPE DiskType,
DisplayMessage(L"MountDisk: Failed to mount disk file '%S' in 0x%p.", FileName, DiskImage);
goto Quit;
}
/* Update its read/write state */
DiskImage->ReadOnly = ReadOnly;
Success = TRUE;
Quit: