mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
wineoss: Make sure writepos < buflen for dsrender.
This commit is contained in:
parent
3c8c02a393
commit
7107a6969d
@ -579,7 +579,7 @@ static HRESULT WINAPI IDsDriverBufferImpl_GetPosition(PIDSDRIVERBUFFER iface,
|
||||
*lpdwWrite = ptr + 32;
|
||||
else
|
||||
*lpdwWrite = ptr + WOutDev[This->drv->wDevID].dwFragmentSize;
|
||||
while (*lpdwWrite > This->buflen)
|
||||
while (*lpdwWrite >= This->buflen)
|
||||
*lpdwWrite -= This->buflen;
|
||||
}
|
||||
TRACE("playpos=%d, writepos=%d\n", lpdwPlay?*lpdwPlay:0, lpdwWrite?*lpdwWrite:0);
|
||||
|
Loading…
Reference in New Issue
Block a user