[NTVDM]: Update the read/write flag of the mounted image: fixes errors when trying...
[reactos.git] / reactos / subsystems / mvdm / ntvdm / hardware / disk.c
index 35009c0..6c67312 100644 (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: