mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:15:59 +00:00
[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:
parent
d7981400fd
commit
d52803c9e7
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue