ole32: Cast-qual warnings fix.
This commit is contained in:
parent
278efe5f7a
commit
c9f9797890
|
@ -1511,7 +1511,7 @@ static BOOL PropertyStorage_DictionaryWriter(const void *key,
|
||||||
DWORD keyLen, pad = 0;
|
DWORD keyLen, pad = 0;
|
||||||
|
|
||||||
StorageUtl_WriteDWord((LPBYTE)&keyLen, 0,
|
StorageUtl_WriteDWord((LPBYTE)&keyLen, 0,
|
||||||
(lstrlenW((LPWSTR)key) + 1) * sizeof(WCHAR));
|
(lstrlenW((LPCWSTR)key) + 1) * sizeof(WCHAR));
|
||||||
c->hr = IStream_Write(This->stm, &keyLen, sizeof(keyLen), &count);
|
c->hr = IStream_Write(This->stm, &keyLen, sizeof(keyLen), &count);
|
||||||
if (FAILED(c->hr))
|
if (FAILED(c->hr))
|
||||||
goto end;
|
goto end;
|
||||||
|
@ -2521,12 +2521,12 @@ HRESULT WINAPI FmtIdToPropStgName(const FMTID *rfmtid, LPOLESTR str)
|
||||||
lstrcpyW(str, szDocSummaryInfo);
|
lstrcpyW(str, szDocSummaryInfo);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
BYTE *fmtptr;
|
const BYTE *fmtptr;
|
||||||
WCHAR *pstr = str;
|
WCHAR *pstr = str;
|
||||||
ULONG bitsRemaining = BITS_PER_BYTE;
|
ULONG bitsRemaining = BITS_PER_BYTE;
|
||||||
|
|
||||||
*pstr++ = 5;
|
*pstr++ = 5;
|
||||||
for (fmtptr = (BYTE *)rfmtid; fmtptr < (BYTE *)rfmtid + sizeof(FMTID); )
|
for (fmtptr = (const BYTE *)rfmtid; fmtptr < (const BYTE *)rfmtid + sizeof(FMTID); )
|
||||||
{
|
{
|
||||||
ULONG i = *fmtptr >> (BITS_PER_BYTE - bitsRemaining);
|
ULONG i = *fmtptr >> (BITS_PER_BYTE - bitsRemaining);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue