Author: hbelusca
Date: Sun Sep 27 17:39:29 2015
New Revision: 69382

URL: http://svn.reactos.org/svn/reactos?rev=69382&view=rev
Log:
[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.

Modified:
    trunk/reactos/subsystems/mvdm/ntvdm/hardware/disk.c

Modified: trunk/reactos/subsystems/mvdm/ntvdm/hardware/disk.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/mvdm/ntvdm/hardware/disk.c?rev=69382&r1=69381&r2=69382&view=diff
==============================================================================
--- trunk/reactos/subsystems/mvdm/ntvdm/hardware/disk.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/mvdm/ntvdm/hardware/disk.c [iso-8859-1] Sun Sep 27 
17:39:29 2015
@@ -581,6 +581,10 @@
         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:


Reply via email to