Index: wine/memory/virtual.c
===================================================================
RCS file: /home/wine/wine/memory/virtual.c,v
retrieving revision 1.39
diff -u -r1.39 virtual.c
--- wine/memory/virtual.c	2000/08/01 23:39:07	1.39
+++ wine/memory/virtual.c	2000/08/02 13:03:26
@@ -1239,6 +1239,19 @@
         goto error;
     }
 
+    /* CreateViewOfFileEx must fail, if the view can`t created at the speciefied address */
+
+    if ( addr ) {
+      MEMORY_BASIC_INFORMATION info;
+      VirtualQuery ( addr, &info, sizeof ( info ) );
+      if ( ( info.State == MEM_FREE ) && ( info.RegionSize >= size  ))
+	flags |= MAP_FIXED;      
+      else {
+	SetLastError( ERROR_INVALID_PARAMETER );
+	goto error;
+      }
+    }
+
     /* FIXME: If a mapping is created with SEC_RESERVE and a process,
      * which has a view of this mapping commits some pages, they will
      * appear commited in all other processes, which have the same
