From 35b9cb15a3d3e18e5461146e4bc6815a64be00c2 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Thu, 28 Jul 2016 16:37:49 -0700 Subject: [PATCH] tst: do not test for read-only buffer during Write when not on Win8+ --- tst/memfs/memfs.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {