From: Pali Rohár pali@kernel.org
According to the DPMI specification, DPMI function 0202h call (Get Processor Exception Handler Vector) sets the whole EDX register and not only its low DX part.
Signed-off-by: Pali Rohár pali@kernel.org --- dlls/krnl386.exe16/int31.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/krnl386.exe16/int31.c b/dlls/krnl386.exe16/int31.c index 404a04a16b7..b0fb001ec7e 100644 --- a/dlls/krnl386.exe16/int31.c +++ b/dlls/krnl386.exe16/int31.c @@ -405,7 +405,7 @@ void WINAPI DOSVM_Int31Handler( CONTEXT *context ) FIXME( "Get Processor Exception Handler Vector (0x%02x) - not supported\n", BL_reg(context) ); SET_CX( context, 0 ); - SET_DX( context, 0 ); + context->Edx = 0; SET_CFLAG( context ); break;