ole32: Remove useless casts to self.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7a1b96f6b7
commit
59fc5cfc3e
|
@ -1003,7 +1003,7 @@ static HRESULT save_mfpict(DataCacheEntry *entry, BOOL contents, IStream *stream
|
|||
meta_place_rec.bounding_box[3] = (LONGLONG)mfpict->yExt * meta_place_rec.inch / 2540;
|
||||
GlobalUnlock(entry->stgmedium.u.hMetaFilePict);
|
||||
|
||||
for (check = (WORD *)&meta_place_rec; check != (WORD *)&meta_place_rec.checksum; check++)
|
||||
for (check = (WORD *)&meta_place_rec; check != &meta_place_rec.checksum; check++)
|
||||
meta_place_rec.checksum ^= *check;
|
||||
hr = IStream_Write(stream, &meta_place_rec, sizeof(struct meta_placeable), NULL);
|
||||
if (hr == S_OK && data_size)
|
||||
|
|
|
@ -1031,7 +1031,7 @@ static HRESULT WINAPI PSFactoryBuffer_CreateStub(
|
|||
{
|
||||
CHECK_EXPECT(CreateStub);
|
||||
|
||||
ok(pUnkServer == (IUnknown*)&Test_Unknown, "unexpected pUnkServer %p\n", pUnkServer);
|
||||
ok(pUnkServer == &Test_Unknown, "unexpected pUnkServer %p\n", pUnkServer);
|
||||
if(!ps_factory_buffer)
|
||||
return E_NOTIMPL;
|
||||
|
||||
|
@ -3753,10 +3753,10 @@ static DWORD CALLBACK implicit_mta_proc(void *param)
|
|||
hr = CoRegisterMessageFilter(NULL, NULL);
|
||||
ok(hr == CO_E_NOT_SUPPORTED, "got %#x\n", hr);
|
||||
|
||||
hr = CoLockObjectExternal((IUnknown *)&Test_Unknown, TRUE, TRUE);
|
||||
hr = CoLockObjectExternal(&Test_Unknown, TRUE, TRUE);
|
||||
ok_ole_success(hr, "CoLockObjectExternal");
|
||||
|
||||
hr = CoDisconnectObject((IUnknown *)&Test_Unknown, 0);
|
||||
hr = CoDisconnectObject(&Test_Unknown, 0);
|
||||
ok_ole_success(hr, "CoDisconnectObject");
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -329,7 +329,7 @@ static HRESULT WINAPI Test_IClassFactory_CreateInstance(
|
|||
LPVOID *ppvObj)
|
||||
{
|
||||
if (pUnkOuter) return CLASS_E_NOAGGREGATION;
|
||||
return IUnknown_QueryInterface((IUnknown*)&Test_Unknown, riid, ppvObj);
|
||||
return IUnknown_QueryInterface(&Test_Unknown, riid, ppvObj);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI Test_IClassFactory_LockServer(
|
||||
|
|
Loading…
Reference in New Issue