windowscodecs: Fix uninitialized variable use in StreamOnMemory_Write.
This commit is contained in:
parent
fd3ea78702
commit
a924e54c94
|
@ -125,11 +125,9 @@ static HRESULT WINAPI StreamOnMemory_Write(IStream *iface,
|
||||||
hr = STG_E_MEDIUMFULL;
|
hr = STG_E_MEDIUMFULL;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (cb) {
|
memcpy(This->pbMemory + This->dwCurPos, pv, cb);
|
||||||
memcpy(This->pbMemory + This->dwCurPos, pv, cb);
|
This->dwCurPos += cb;
|
||||||
This->dwCurPos += cb;
|
hr = S_OK;
|
||||||
hr = S_OK;
|
|
||||||
}
|
|
||||||
if (pcbWritten) *pcbWritten = cb;
|
if (pcbWritten) *pcbWritten = cb;
|
||||||
}
|
}
|
||||||
LeaveCriticalSection(&This->lock);
|
LeaveCriticalSection(&This->lock);
|
||||||
|
|
Loading…
Reference in New Issue