Mikołaj Zalewski : winedos: Make UMB executable.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Aug 15 04:34:02 CDT 2007


Module: wine
Branch: master
Commit: 570eb6093ea0e96e35dc9a23d3de42e2cf166d3f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=570eb6093ea0e96e35dc9a23d3de42e2cf166d3f

Author: Mikołaj Zalewski <mikolaj at zalewski.pl>
Date:   Tue Aug 14 10:05:39 2007 -0700

winedos: Make UMB executable.

---

 dlls/winedos/himem.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/winedos/himem.c b/dlls/winedos/himem.c
index 240ba3e..3dcc103 100644
--- a/dlls/winedos/himem.c
+++ b/dlls/winedos/himem.c
@@ -291,4 +291,9 @@ void DOSVM_InitSegments( void )
     ptr = DOSVM_AllocDataUMB( DOSVM_RELAY_DATA_SIZE, 
                               0, &DOSVM_dpmi_segments->relay_data_sel);
     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);
 }




More information about the wine-cvs mailing list