Commit a924e54c authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

windowscodecs: Fix uninitialized variable use in StreamOnMemory_Write.

parent fd3ea787
......@@ -125,11 +125,9 @@ static HRESULT WINAPI StreamOnMemory_Write(IStream *iface,
hr = STG_E_MEDIUMFULL;
}
else {
if (cb) {
memcpy(This->pbMemory + This->dwCurPos, pv, cb);
This->dwCurPos += cb;
hr = S_OK;
}
if (pcbWritten) *pcbWritten = cb;
}
LeaveCriticalSection(&This->lock);
......
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