Commit bf8e71bc authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Don't use the mapping handle to detect file mappings.

parent 3f0362ec
...@@ -2000,7 +2000,8 @@ void VIRTUAL_SetForceExec( BOOL enable ) ...@@ -2000,7 +2000,8 @@ void VIRTUAL_SetForceExec( BOOL enable )
WINE_RB_FOR_EACH_ENTRY( view, &views_tree, struct file_view, entry ) WINE_RB_FOR_EACH_ENTRY( view, &views_tree, struct file_view, entry )
{ {
BYTE commit = view->mapping ? VPROT_COMMITTED : 0; /* file mappings are always accessible */ /* file mappings are always accessible */
BYTE commit = is_view_valloc( view ) ? 0 : VPROT_COMMITTED;
mprotect_range( view, view->base, view->size, commit, 0 ); mprotect_range( view, view->base, view->size, commit, 0 );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment