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>
[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
);
"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),