Commit 570eb609 authored by Mikołaj Zalewski's avatar Mikołaj Zalewski Committed by Alexandre Julliard

winedos: Make UMB executable.

parent 13b376df
...@@ -291,4 +291,9 @@ void DOSVM_InitSegments( void ) ...@@ -291,4 +291,9 @@ void DOSVM_InitSegments( void )
ptr = DOSVM_AllocDataUMB( DOSVM_RELAY_DATA_SIZE, ptr = DOSVM_AllocDataUMB( DOSVM_RELAY_DATA_SIZE,
0, &DOSVM_dpmi_segments->relay_data_sel); 0, &DOSVM_dpmi_segments->relay_data_sel);
memset( ptr, 0, DOSVM_RELAY_DATA_SIZE ); memset( ptr, 0, DOSVM_RELAY_DATA_SIZE );
/*
* As we store code in UMB we should make sure it is executable
*/
VirtualProtect((void *)DOSVM_UMB_BOTTOM, DOSVM_UMB_TOP - DOSVM_UMB_BOTTOM, PAGE_EXECUTE_READWRITE, NULL);
} }
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