Skip to content

Commit f057344

Browse files
committed
Divide into 2 commits Part 1 of 3.
1 parent 58001d5 commit f057344

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • sdk/lib/fslib/vfatlib/check

sdk/lib/fslib/vfatlib/check/io.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ void fs_write(off_t pos, int size, void *data)
347347
int did;
348348

349349
#ifdef __REACTOS__
350+
assert(interactive || rw);
350351

351352
if (FsCheckFlags & FSCHECK_IMMEDIATE_WRITE) {
352353
void *scratch;
@@ -355,8 +356,6 @@ void fs_write(off_t pos, int size, void *data)
355356
const size_t seek_delta = (size_t)(pos - seekpos_aligned);
356357
BOOLEAN use_read = (seek_delta != 0) || ((readsize_aligned-size) != 0);
357358

358-
assert(interactive || rw);
359-
360359
/* Aloc temp buffer if write is not aligned */
361360
if (use_read)
362361
scratch = alloc(readsize_aligned);

0 commit comments

Comments
 (0)