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;
|
*lpdwWrite = ptr + 32;
|
||||||
else
|
else
|
||||||
*lpdwWrite = ptr + WOutDev[This->drv->wDevID].dwFragmentSize;
|
*lpdwWrite = ptr + WOutDev[This->drv->wDevID].dwFragmentSize;
|
||||||
while (*lpdwWrite > This->buflen)
|
while (*lpdwWrite >= This->buflen)
|
||||||
*lpdwWrite -= This->buflen;
|
*lpdwWrite -= This->buflen;
|
||||||
}
|
}
|
||||||
TRACE("playpos=%d, writepos=%d\n", lpdwPlay?*lpdwPlay:0, lpdwWrite?*lpdwWrite:0);
|
TRACE("playpos=%d, writepos=%d\n", lpdwPlay?*lpdwPlay:0, lpdwWrite?*lpdwWrite:0);
|
||||||
|
|
Loading…
Reference in New Issue