[VFATLIB] Never touch the file system if not in interactive or RW mode.
[reactos.git] / sdk / lib / fslib / vfatlib / check / io.c
index 2eca2ab..06e0496 100644 (file)
@@ -352,6 +352,8 @@ void fs_write(off_t pos, int size, void *data)
     CHANGE *new;
     int did;
 
+    assert(interactive || rw);
+
 #if 1 //SAE
 
     if (FsCheckFlags & FSCHECK_IMMEDIATE_WRITE) {