AsmIdtVectorBegin:\r
%assign Vector 0\r
%rep 256\r
- push byte %[Vector];\r
+ push strict dword %[Vector];\r
push eax\r
mov eax, ASM_PFX(CommonInterruptEntry)\r
jmp eax\r
AsmIdtVectorEnd:\r
\r
HookAfterStubBegin:\r
- db 0x6a ; push\r
+ push strict dword 0 ; 0 will be fixed\r
VectorNum:\r
- db 0 ; 0 will be fixed\r
push eax\r
mov eax, HookAfterStubHeaderEnd\r
jmp eax\r
ASM_PFX(AsmVectorNumFixup):\r
mov eax, dword [esp + 8]\r
mov ecx, [esp + 4]\r
- mov [ecx + (VectorNum - HookAfterStubBegin)], al\r
+ mov [ecx + (VectorNum - 4 - HookAfterStubBegin)], al\r
ret\r