diff loader/pe_image.c @ 23961:4e22889a6e35

Ugly hack to make xanlib.dll work. See also http://samples.mplayerhq.hu/game-formats/wc4-xan/
author reimar
date Wed, 01 Aug 2007 03:30:38 +0000
parents acfe034e5386
children be23b48b5cdd
line wrap: on
line diff
--- a/loader/pe_image.c	Wed Aug 01 01:15:26 2007 +0000
+++ b/loader/pe_image.c	Wed Aug 01 03:30:38 2007 +0000
@@ -546,7 +546,8 @@
      *         to work (until we support shared sections properly).
      */
 
-    if ( nt->OptionalHeader.ImageBase & 0x80000000 )
+    if ( nt->OptionalHeader.ImageBase & 0x80000000 &&
+        !strstr(filename, "xanlib.dll"))
     {
         HMODULE sharedMod = (HMODULE)nt->OptionalHeader.ImageBase; 
         IMAGE_NT_HEADERS *sharedNt = (PIMAGE_NT_HEADERS)