Module: wine Branch: master Commit: 15d07b5c9ae4b62b47a8a4842d9a38c70f49eca2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=15d07b5c9ae4b62b47a8a4842d...
Author: Florian Tobias Schandinat FlorianSchandinat@gmx.de Date: Mon Feb 9 10:23:47 2009 +0100
winedos: Adjust get_timer_val calls to prevent buffer overflow.
---
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); } }