summaryrefslogtreecommitdiff
path: root/source4/build/pidl/client.pm
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/pidl/client.pm')
-rw-r--r--source4/build/pidl/client.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/build/pidl/client.pm b/source4/build/pidl/client.pm
index d9d2a0ca14..9502c68e1a 100644
--- a/source4/build/pidl/client.pm
+++ b/source4/build/pidl/client.pm
@@ -69,6 +69,7 @@ NTSTATUS dcerpc_$name(struct dcom_interface *d, TALLOC_CTX *mem_ctx, struct $nam
}
";
+ $objarg = "d";
} else {
$res .=
"
@@ -77,10 +78,11 @@ NTSTATUS dcerpc_$name(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct $name *
struct rpc_request *req;
NTSTATUS status;
";
+ $objarg = "p";
}
$res .= "
- req = dcerpc_$name\_send(p, mem_ctx, r);
+ req = dcerpc_$name\_send($objarg, mem_ctx, r);
if (req == NULL) return NT_STATUS_NO_MEMORY;
status = dcerpc_ndr_request_recv(req);