diff options
author | Justin Stephenson <jstephen@redhat.com> | 2018-09-17 11:19:02 -0400 |
---|---|---|
committer | Bjoern Jacke <bjacke@samba.org> | 2019-01-28 15:44:18 +0100 |
commit | 5c1514e677f9b6abc91be9dcf94375fbece9fdcc (patch) | |
tree | 102afd71fa830da9dfeb7b5633465cc434df5109 /source4/torture/rpc | |
parent | 8f240b12f95fa9a1cf91f7403347abec84997dd6 (diff) | |
download | samba-5c1514e677f9b6abc91be9dcf94375fbece9fdcc.tar.gz |
librpc:idl: Fix pszDestInfPath winspool parameter type
The in/out type of pszDestInfPath needs to be a string type for
RPC call UploadPrinterDriverPackage.
Per the Spec:
[in, out, unique, size_is(*pcchDestInfPath)] wchar_t* pszDestInfPath,
pszDestInfPath: A pointer to a buffer that receives a string that
specifies the full path of the directory to which the driver
installation control file was copied.
Signed-off-by: Justin Stephenson <jstephen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Bjoern Jacke <bjacke@samba.org>
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/iremotewinspool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/rpc/iremotewinspool.c b/source4/torture/rpc/iremotewinspool.c index 03613b443e3..662e132593a 100644 --- a/source4/torture/rpc/iremotewinspool.c +++ b/source4/torture/rpc/iremotewinspool.c @@ -399,8 +399,8 @@ static bool test_AsyncUploadPrinterDriverPackage(struct torture_context *tctx, "AsyncUploadPrinterDriverPackage failed"); pcchDestInfPath = 260; - r.in.pszDestInfPath = talloc_zero_array(tctx, uint16_t, pcchDestInfPath); - r.out.pszDestInfPath = talloc_zero_array(tctx, uint16_t, pcchDestInfPath); + r.in.pszDestInfPath = talloc_zero(tctx, const char); + r.out.pszDestInfPath = talloc_zero(tctx, const char); torture_assert_ntstatus_ok(tctx, dcerpc_winspool_AsyncUploadPrinterDriverPackage_r(b, tctx, &r), |