mirror of
https://github.com/samba-team/samba.git
synced 2025-02-08 05:57:51 +03:00
r8567: fixed the build after the com idl changes
Jelmer, can you please check that I got this right? (This used to be commit bec135446af741200743cdc4ecb4c5ce68ed34a6)
This commit is contained in:
parent
494e396bfb
commit
d2d5d71f34
@ -164,7 +164,7 @@ WERROR dcom_create_object(struct com_context *ctx, struct GUID *clsid, const cha
|
|||||||
r.in.protseq = protseq;
|
r.in.protseq = protseq;
|
||||||
r.in.Interfaces = num_ifaces;
|
r.in.Interfaces = num_ifaces;
|
||||||
r.in.pIIDs = iid;
|
r.in.pIIDs = iid;
|
||||||
r.out.ifaces = talloc_array(ctx, struct pMInterfacePointer, num_ifaces);
|
r.out.ifaces = talloc_array(ctx, struct MInterfacePointer *, num_ifaces);
|
||||||
r.out.pdsaOxidBindings = &dualstring;
|
r.out.pdsaOxidBindings = &dualstring;
|
||||||
|
|
||||||
status = dcerpc_RemoteActivation(p, ctx, &r);
|
status = dcerpc_RemoteActivation(p, ctx, &r);
|
||||||
@ -186,7 +186,7 @@ WERROR dcom_create_object(struct com_context *ctx, struct GUID *clsid, const cha
|
|||||||
results[i] = r.out.results[i];
|
results[i] = r.out.results[i];
|
||||||
(*ip)[i] = NULL;
|
(*ip)[i] = NULL;
|
||||||
if (W_ERROR_IS_OK(results[i])) {
|
if (W_ERROR_IS_OK(results[i])) {
|
||||||
status = dcom_IUnknown_from_OBJREF(ctx, &(*ip)[i], &r.out.ifaces[i].ip->obj);
|
status = dcom_IUnknown_from_OBJREF(ctx, &(*ip)[i], &r.out.ifaces[i]->obj);
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
results[i] = ntstatus_to_werror(status);
|
results[i] = ntstatus_to_werror(status);
|
||||||
}
|
}
|
||||||
@ -208,7 +208,7 @@ WERROR dcom_get_class_object(struct com_context *ctx, struct GUID *clsid, const
|
|||||||
struct DUALSTRINGARRAY dualstring;
|
struct DUALSTRINGARRAY dualstring;
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
struct MInterfacePointer pm;
|
struct MInterfacePointer pm;
|
||||||
struct pMInterfacePointer ifaces[1];
|
struct MInterfacePointer *ifaces[1];
|
||||||
uint16_t protseq[] = DCOM_NEGOTIATED_PROTOCOLS;
|
uint16_t protseq[] = DCOM_NEGOTIATED_PROTOCOLS;
|
||||||
|
|
||||||
if (!server) {
|
if (!server) {
|
||||||
@ -233,7 +233,7 @@ WERROR dcom_get_class_object(struct com_context *ctx, struct GUID *clsid, const
|
|||||||
r.in.pIIDs = iid;
|
r.in.pIIDs = iid;
|
||||||
r.in.Mode = MODE_GET_CLASS_OBJECT;
|
r.in.Mode = MODE_GET_CLASS_OBJECT;
|
||||||
r.out.ifaces = ifaces;
|
r.out.ifaces = ifaces;
|
||||||
ifaces[0].ip = ±
|
ifaces[0] = ±
|
||||||
r.out.pdsaOxidBindings = &dualstring;
|
r.out.pdsaOxidBindings = &dualstring;
|
||||||
|
|
||||||
status = dcerpc_RemoteActivation(p, ctx, &r);
|
status = dcerpc_RemoteActivation(p, ctx, &r);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user