mirror of
https://github.com/copy/v86.git
synced 2025-12-31 04:23:15 +00:00
Serious bugfix
This commit is contained in:
parent
32288cd85a
commit
cf7e4d4514
1 changed files with 2 additions and 2 deletions
|
|
@ -1070,7 +1070,7 @@ var pe_functions =
|
|||
// Two checks in one comparison:
|
||||
// 1. Did the high 20 bits of eip change
|
||||
// or 2. Are the low 12 bits of eip 0xFFF (and this read crosses a page boundary)
|
||||
if((instruction_pointer ^ last_virt_eip) > 0xFFE)
|
||||
if(((instruction_pointer ^ last_virt_eip) >>> 0) > 0xFFE)
|
||||
{
|
||||
return read_imm8() | read_imm8() << 8;
|
||||
}
|
||||
|
|
@ -1085,7 +1085,7 @@ var pe_functions =
|
|||
read_imm32s : function()
|
||||
{
|
||||
// Analogue to the above comment
|
||||
if((instruction_pointer ^ last_virt_eip) > 0xFFC)
|
||||
if(((instruction_pointer ^ last_virt_eip) >>> 0) > 0xFFC)
|
||||
{
|
||||
return read_imm16() | read_imm16() << 16;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue