winedos: Adjust get_timer_val calls to prevent buffer overflow.
Florian Tobias Schandinat
FlorianSchandinat at gmx.de
Mon Feb 9 03:23:47 CST 2009
---
dlls/winedos/ioports.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/winedos/ioports.c b/dlls/winedos/ioports.c
index e9a825f..fef2d85 100644
--- a/dlls/winedos/ioports.c
+++ b/dlls/winedos/ioports.c
@@ -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);
}
}
--
1.4.4.4
--------------030000080103060605080100--
More information about the wine-patches
mailing list