rpcrt4/tests: Cast-qual warnings fix.

This commit is contained in:
Andrew Talbot 2006-12-13 20:50:37 +00:00 committed by Alexandre Julliard
parent df9715b1b0
commit 82a042d0df
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);
}