mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
Fill in the MZ header in builtin PE DLLs.
This commit is contained in:
parent
d3a1480f6b
commit
d45e12a966
1 changed files with 10 additions and 2 deletions
|
@ -275,8 +275,16 @@ static void *map_dll( const IMAGE_NT_HEADERS *nt_descr )
|
|||
|
||||
/* Build the DOS and NT headers */
|
||||
|
||||
dos->e_magic = IMAGE_DOS_SIGNATURE;
|
||||
dos->e_lfanew = sizeof(*dos);
|
||||
dos->e_magic = IMAGE_DOS_SIGNATURE;
|
||||
dos->e_cblp = sizeof(*dos);
|
||||
dos->e_cp = 1;
|
||||
dos->e_cparhdr = (sizeof(*dos)+0xf)/0x10;
|
||||
dos->e_minalloc = 0;
|
||||
dos->e_maxalloc = 0xffff;
|
||||
dos->e_ss = 0x0000;
|
||||
dos->e_sp = 0x00b8;
|
||||
dos->e_lfarlc = sizeof(*dos);
|
||||
dos->e_lfanew = sizeof(*dos);
|
||||
|
||||
*nt = *nt_descr;
|
||||
|
||||
|
|
Loading…
Reference in a new issue