winedos: Adjust get_timer_val calls to prevent buffer overflow.

This commit is contained in:
Florian Tobias Schandinat 2009-02-09 10:23:47 +01:00 committed by Alexandre Julliard
parent a5162b62e7
commit 15d07b5c9a
1 changed files with 3 additions and 3 deletions

View File

@ -708,17 +708,17 @@ void WINAPI DOSVM_outport( int port, int size, DWORD value )
if (value & 0x02 && !(tmr_8253[0].flags & TMR_LATCHED))
{
tmr_8253[0].flags |= TMR_LATCHED;
tmr_8253[0].latch = get_timer_val(chan);
tmr_8253[0].latch = get_timer_val(0);
}
if (value & 0x04 && !(tmr_8253[1].flags & TMR_LATCHED))
{
tmr_8253[1].flags |= TMR_LATCHED;
tmr_8253[1].latch = get_timer_val(chan);
tmr_8253[1].latch = get_timer_val(1);
}
if (value & 0x08 && !(tmr_8253[2].flags & TMR_LATCHED))
{
tmr_8253[2].flags |= TMR_LATCHED;
tmr_8253[2].latch = get_timer_val(chan);
tmr_8253[2].latch = get_timer_val(2);
}
}