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

This commit is contained in:
Alexandre Julliard 2007-12-31 17:25:05 +01:00
parent 56da854c21
commit 4d53055f62
1 changed files with 4 additions and 2 deletions

View File

@ -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
{