diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index 69a2198b8e8..757138d3de5 100644 --- a/dlls/ole32/storage32.c +++ b/dlls/ole32/storage32.c @@ -7910,9 +7910,9 @@ HRESULT SmallBlockChainStream_WriteAt( /* * Step to the next big block. */ - if(FAILED(SmallBlockChainStream_GetNextBlockInChain(This, blockIndex, - &blockIndex))) - return FALSE; + res = SmallBlockChainStream_GetNextBlockInChain(This, blockIndex, &blockIndex); + if (FAILED(res)) + return res; bufferWalker += bytesWrittenToBigBlockFile; size -= bytesWrittenToBigBlockFile; *bytesWritten += bytesWrittenToBigBlockFile;