Andrey Turkin : libwine: Emulate MS linker stub for builtin dlls.
Alexandre Julliard
julliard at winehq.org
Wed Oct 10 06:46:12 CDT 2007
Module: wine
Branch: master
Commit: fa0524a4144112ce2b6c432fcec47232e7b92eeb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fa0524a4144112ce2b6c432fcec47232e7b92eeb
Author: Andrey Turkin <andrey.turkin at gmail.com>
Date: Mon Oct 8 21:42:16 2007 +0400
libwine: Emulate MS linker stub for builtin dlls.
---
libs/wine/loader.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libs/wine/loader.c b/libs/wine/loader.c
index e6fcaae..2f78248 100644
--- a/libs/wine/loader.c
+++ b/libs/wine/loader.c
@@ -352,8 +352,8 @@ static void *map_dll( const IMAGE_NT_HEADERS *nt_descr )
/* Build the DOS and NT headers */
dos->e_magic = IMAGE_DOS_SIGNATURE;
- dos->e_cblp = sizeof(*dos);
- dos->e_cp = 1;
+ dos->e_cblp = 0x90;
+ dos->e_cp = 3;
dos->e_cparhdr = (sizeof(*dos)+0xf)/0x10;
dos->e_minalloc = 0;
dos->e_maxalloc = 0xffff;
More information about the wine-cvs
mailing list