mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
ole32: Fixed 2 uninitialized variable use (Coverity).
This commit is contained in:
parent
435762024f
commit
bf1e9a2e93
@ -4096,9 +4096,11 @@ static HRESULT StorageBaseImpl_CopyStream(
|
||||
if (SUCCEEDED(hr))
|
||||
hr = StorageBaseImpl_StreamWriteAt(dst, dst_entry, bytes_copied, bytestocopy,
|
||||
data, &byteswritten);
|
||||
if (SUCCEEDED(hr) && byteswritten != bytestocopy) hr = STG_E_WRITEFAULT;
|
||||
|
||||
bytes_copied.QuadPart += byteswritten;
|
||||
if (SUCCEEDED(hr))
|
||||
{
|
||||
if (byteswritten != bytestocopy) hr = STG_E_WRITEFAULT;
|
||||
bytes_copied.QuadPart += byteswritten;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -4370,7 +4372,7 @@ static HRESULT TransactedSnapshotImpl_CopyTree(TransactedSnapshotImpl* This)
|
||||
{
|
||||
DirRef cursor;
|
||||
TransactedDirEntry *entry;
|
||||
HRESULT hr;
|
||||
HRESULT hr = S_OK;
|
||||
|
||||
cursor = This->base.storageDirEntry;
|
||||
entry = &This->entries[cursor];
|
||||
|
Loading…
Reference in New Issue
Block a user