winedos: Make UMB executable.

This commit is contained in:
Mikołaj Zalewski 2007-08-14 10:05:39 -07:00 committed by Alexandre Julliard
parent 13b376df73
commit 570eb6093e
1 changed files with 5 additions and 0 deletions

View File

@ -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);
} }