[NTVDM]: Update the read/write flag of the mounted image: fixes errors when trying...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 27 Sep 2015 17:39:29 +0000 (17:39 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 27 Sep 2015 17:39:29 +0000 (17:39 +0000)
svn path=/trunk/; revision=69382

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: