summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--librpc/idl/winspool.idl2
-rw-r--r--source4/torture/rpc/iremotewinspool.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/librpc/idl/winspool.idl b/librpc/idl/winspool.idl
index dfb45a128d4..5497a67d34c 100644
--- a/librpc/idl/winspool.idl
+++ b/librpc/idl/winspool.idl
@@ -761,7 +761,7 @@ import "misc.idl", "security.idl", "winreg.idl", "spoolss.idl";
[in] [string,charset(UTF16)] uint16 *pszInfPath,
[in] [string,charset(UTF16)] uint16 *pszEnvironment,
[in] winspool_UploadPrinterDriverPackageFlags dwFlags,
- [in, out, unique, size_is(*pcchDestInfPath)] uint16 *pszDestInfPath,
+ [in, out, unique, size_is(*pcchDestInfPath)] [charset(UTF16)] uint16 *pszDestInfPath,
[in, out] uint32 *pcchDestInfPath
);
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),