server: Implement the file sharing check when truncating a file that has an existing mapping.
diff --git a/server/mapping.c b/server/mapping.c
index d8bc527..1cf53b9 100644
--- a/server/mapping.c
+++ b/server/mapping.c
@@ -457,7 +457,7 @@
 
     if (handle)
     {
-        unsigned int mapping_access = 0;
+        unsigned int mapping_access = FILE_MAPPING_ACCESS;
 
         if (!(protect & VPROT_COMMITTED))
         {