ole32: Cast-qual warnings fix.
This commit is contained in:
parent
eb7a89ccc6
commit
ca78a8b65f
|
@ -896,7 +896,7 @@ static HRESULT WINAPI ImplBIGBLOCKFILE_WriteAt(
|
||||||
|
|
||||||
if (bytes_left)
|
if (bytes_left)
|
||||||
{
|
{
|
||||||
readPtr = (LPBYTE)readPtr + bytes_to_page;
|
readPtr = (const BYTE *)readPtr + bytes_to_page;
|
||||||
page_index ++;
|
page_index ++;
|
||||||
offset_in_page = 0;
|
offset_in_page = 0;
|
||||||
if (bytes_left > PAGE_SIZE)
|
if (bytes_left > PAGE_SIZE)
|
||||||
|
|
|
@ -1775,8 +1775,8 @@ static BOOL PropertyStorage_PropertiesWriter(const void *key, const void *value,
|
||||||
assert(value);
|
assert(value);
|
||||||
assert(extra);
|
assert(extra);
|
||||||
assert(closure);
|
assert(closure);
|
||||||
c->hr = PropertyStorage_WritePropertyToStream(This,
|
c->hr = PropertyStorage_WritePropertyToStream(This, c->propNum++,
|
||||||
c->propNum++, (DWORD)key, (PROPVARIANT *)value, c->sectionOffset);
|
(DWORD)key, value, c->sectionOffset);
|
||||||
return SUCCEEDED(c->hr);
|
return SUCCEEDED(c->hr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4643,10 +4643,6 @@ HRESULT BlockChainStream_WriteAt(BlockChainStream* This,
|
||||||
return STG_E_DOCFILECORRUPT;
|
return STG_E_DOCFILECORRUPT;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Here, I'm casting away the constness on the buffer variable
|
|
||||||
* This is OK since we don't intend to modify that buffer.
|
|
||||||
*/
|
|
||||||
*bytesWritten = 0;
|
*bytesWritten = 0;
|
||||||
bufferWalker = (const BYTE*)buffer;
|
bufferWalker = (const BYTE*)buffer;
|
||||||
|
|
||||||
|
@ -4667,7 +4663,7 @@ HRESULT BlockChainStream_WriteAt(BlockChainStream* This,
|
||||||
|
|
||||||
StorageImpl_WriteAt(This->parentStorage,
|
StorageImpl_WriteAt(This->parentStorage,
|
||||||
ulOffset,
|
ulOffset,
|
||||||
(BYTE*)bufferWalker,
|
bufferWalker,
|
||||||
bytesToWrite,
|
bytesToWrite,
|
||||||
&bytesWrittenAt);
|
&bytesWrittenAt);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue