diff --git a/tst/memfs/memfs.cpp b/tst/memfs/memfs.cpp index 486f5c4d..3ba4a2fe 100644 --- a/tst/memfs/memfs.cpp +++ b/tst/memfs/memfs.cpp @@ -20,6 +20,7 @@ #include #include #include +#include /* * Define the DEBUG_BUFFER_CHECK macro on Windows 8 or above. This includes @@ -539,7 +540,8 @@ static NTSTATUS Write(FSP_FILE_SYSTEM *FileSystem, __try { *P = *P | 0; - assert(0); + assert(!IsWindows8OrGreater()); + /* only on Windows 8 we can make the buffer read-only! */ } __except (EXCEPTION_EXECUTE_HANDLER) {