Commit 4d53055f authored by Alexandre Julliard's avatar Alexandre Julliard

winedos: Don't emulate in 32-bit mode interrupts that don't have a specific handler.

parent 56da854c
......@@ -328,8 +328,10 @@ BOOL WINAPI DOSVM_EmulateInterruptPM( CONTEXT86 *context, BYTE intnum )
}
else if (wine_ldt_is_system(context->SegCs))
{
INTPROC proc = DOSVM_GetBuiltinHandler( intnum );
if (!proc) return FALSE;
INTPROC proc;
if (intnum >= sizeof(DOSVM_VectorsBuiltin)/sizeof(INTPROC)) return FALSE;
if (!(proc = DOSVM_VectorsBuiltin[intnum])) return FALSE;
proc( context );
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment