Commit 82a042d0 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

rpcrt4/tests: Cast-qual warnings fix.

parent df9715b1
......@@ -605,7 +605,7 @@ static void test_CreateStub(IPSFactoryBuffer *ppsf)
IUnknown *obj = (IUnknown*)&vtbl;
IRpcStubBuffer *pstub = create_stub(ppsf, &IID_if1, obj, S_OK);
CStdStubBuffer *cstd_stub = (CStdStubBuffer*)pstub;
CInterfaceStubHeader *header = ((CInterfaceStubHeader *)cstd_stub->lpVtbl) - 1;
const CInterfaceStubHeader *header = ((const CInterfaceStubHeader *)cstd_stub->lpVtbl) - 1;
ok(IsEqualIID(header->piid, &IID_if1), "header iid differs\n");
ok(cstd_stub->RefCount == 1, "ref count %d\n", cstd_stub->RefCount);
......
......@@ -224,7 +224,7 @@ todo_wine {
static int deref_cmp(const void *s1, const void *s2, size_t num)
{
return memcmp(*(void**)s1, *(void**)s2, num);
return memcmp(*(const void *const *)s1, *(const void *const *)s2, num);
}
......
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