summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2017-07-26 18:16:43 +0200
committerAndrew Bartlett <abartlet@samba.org>2018-03-01 04:37:40 +0100
commitd31a8cd800db3862cf7e6935f135705af647b1d0 (patch)
tree40dc4fc6a921d973d88c7b104e988a00c88c6aed /source4
parentc21d4bc0a13866f47384805e4a8f729b878841e9 (diff)
downloadsamba-d31a8cd800db3862cf7e6935f135705af647b1d0.tar.gz
s4:lib:com: Fix function declartions
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/com/classes/simple.c4
-rw-r--r--source4/lib/com/main.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/source4/lib/com/classes/simple.c b/source4/lib/com/classes/simple.c
index 4d28a158102..54c74ce564b 100644
--- a/source4/lib/com/classes/simple.c
+++ b/source4/lib/com/classes/simple.c
@@ -75,7 +75,7 @@ static WERROR simpleclass_IClassFactory_CreateInstance(struct IClassFactory *d,
TALLOC_CTX *mem_ctx,
struct MInterfacePointer *pUnknown,
struct GUID *iid,
- struct MInterfacePointer *ppv)
+ struct MInterfacePointer **ppv)
{
struct IStream *ret;
/* FIXME: Check whether IID == ISTREAM_IID */
@@ -84,7 +84,7 @@ static WERROR simpleclass_IClassFactory_CreateInstance(struct IClassFactory *d,
ret->vtable = &simple_IStream_vtable;
ret->object_data = NULL;
- ppv = (struct MInterfacePointer *)ret;
+ *ppv = (struct MInterfacePointer *)ret;
return WERR_OK;
}
diff --git a/source4/lib/com/main.c b/source4/lib/com/main.c
index 68a3bc6d3d3..647f32346d9 100644
--- a/source4/lib/com/main.c
+++ b/source4/lib/com/main.c
@@ -52,7 +52,7 @@ WERROR com_create_object(struct com_context *ctx, struct GUID *clsid, int num_if
}
/* Run IClassFactory::CreateInstance() */
- error = IClassFactory_CreateInstance(factory, ctx, NULL, &classfact_iid, (struct MInterfacePointer *) &iunk);
+ error = IClassFactory_CreateInstance(factory, ctx, NULL, &classfact_iid, (struct MInterfacePointer **)&iunk);
if (!W_ERROR_IS_OK(error)) {
DEBUG(3, ("Error while calling IClassFactory::CreateInstance : %s\n", win_errstr(error)));
return error;
@@ -64,7 +64,7 @@ WERROR com_create_object(struct com_context *ctx, struct GUID *clsid, int num_if
}
/* Release class object */
- IUnknown_Release(factory, ctx);
+ IUnknown_Release((struct IUnknown *)factory, ctx);
error = WERR_OK;