Commit 7107a696 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

wineoss: Make sure writepos < buflen for dsrender.

parent 3c8c02a3
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment