Rev 692 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 692 | Rev 872 | ||
---|---|---|---|
Line 599... | Line 599... | ||
599 | and eax,1FFh |
599 | and eax,1FFh |
600 | inc si |
600 | inc si |
601 | or ax,ax |
601 | or ax,ax |
602 | jnz mz_size_ok |
602 | jnz mz_size_ok |
603 | mov ax,200h |
603 | dec si |
604 | dec si |
- | |
605 | mz_size_ok: |
604 | mz_size_ok: |
606 | mov [edx+2],ax ; number of bytes in last page |
605 | mov [edx+2],ax ; number of bytes in last page |
607 | mov [edx+4],si ; number of pages |
606 | mov [edx+4],si ; number of pages |
608 | mov eax,[real_code_size] |
607 | mov eax,[real_code_size] |
609 | dec eax |
608 | dec eax |
Line 703... | Line 702... | ||
703 | movzx ecx,word [esi+4] |
702 | movzx ecx,word [esi+4] |
704 | dec ecx |
703 | dec ecx |
705 | shl ecx,9 |
704 | shl ecx,9 |
706 | movzx edx,word [esi+2] |
705 | movzx edx,word [esi+2] |
707 | add ecx,edx |
706 | test edx,edx |
- | 707 | jnz stub_header_size_ok |
|
- | 708 | mov dx,200h |
|
- | 709 | stub_header_size_ok: |
|
- | 710 | add ecx,edx |
|
708 | mov edx,edi |
711 | mov edx,edi |
709 | sub ecx,eax |
712 | sub ecx,eax |
710 | je read_stub_code |
713 | je read_stub_code |
711 | jb stub_code_ok |
714 | jb stub_code_ok |
712 | push ecx |
715 | push ecx |