Commit bf1e9a2e authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

ole32: Fixed 2 uninitialized variable use (Coverity).

parent 43576202
......@@ -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];
......
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