diff --git a/librpc/idl/spoolss.idl b/librpc/idl/spoolss.idl index 43f62356b55..1110a4a5d88 100644 --- a/librpc/idl/spoolss.idl +++ b/librpc/idl/spoolss.idl @@ -3382,7 +3382,7 @@ cpp_quote("#define spoolss_security_descriptor security_descriptor") RPC_PrintPropertyValue propertyValue; } RPC_PrintNamedProperty; - WERROR spoolss_RpcGetJobNamedPropertyValue( + WERROR spoolss_GetJobNamedPropertyValue( [in,ref] policy_handle *hPrinter, [in] uint32 JobId, [in] [string,charset(UTF16)] uint16 *pszName, diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index 6433e12d134..d24ad823731 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -11248,11 +11248,11 @@ WERROR _spoolss_6d(struct pipes_struct *p, } /**************************************************************** - _spoolss_RpcGetJobNamedPropertyValue + _spoolss_GetJobNamedPropertyValue ****************************************************************/ -WERROR _spoolss_RpcGetJobNamedPropertyValue(struct pipes_struct *p, - struct spoolss_RpcGetJobNamedPropertyValue *r) +WERROR _spoolss_GetJobNamedPropertyValue(struct pipes_struct *p, + struct spoolss_GetJobNamedPropertyValue *r) { p->fault_state = DCERPC_FAULT_OP_RNG_ERROR; return WERR_NOT_SUPPORTED; diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index 3dafed045c4..245ef581413 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -3367,21 +3367,21 @@ static bool test_JobPropertyGetValue(struct torture_context *tctx, const char *property_name, struct RPC_PrintPropertyValue *value) { - struct spoolss_RpcGetJobNamedPropertyValue r; + struct spoolss_GetJobNamedPropertyValue r; r.in.hPrinter = handle; r.in.JobId = job_id; r.in.pszName = property_name; r.out.pValue = value; - torture_comment(tctx, "Testing RpcGetJobNamedPropertyValue(%d) %s\n", + torture_comment(tctx, "Testing GetJobNamedPropertyValue(%d) %s\n", job_id, property_name); torture_assert_ntstatus_ok(tctx, - dcerpc_spoolss_RpcGetJobNamedPropertyValue_r(b, tctx, &r), - "spoolss_RpcGetJobNamedPropertyValue failed"); + dcerpc_spoolss_GetJobNamedPropertyValue_r(b, tctx, &r), + "spoolss_GetJobNamedPropertyValue failed"); torture_assert_werr_ok(tctx, r.out.result, - "spoolss_RpcGetJobNamedPropertyValue failed"); + "spoolss_GetJobNamedPropertyValue failed"); return true; }