diff --git a/librpc/idl/spoolss.idl b/librpc/idl/spoolss.idl index 5d63b260781..2782c719944 100644 --- a/librpc/idl/spoolss.idl +++ b/librpc/idl/spoolss.idl @@ -3288,10 +3288,10 @@ cpp_quote("#define spoolss_security_descriptor security_descriptor") GUID core_driver_guid; NTTIME driver_date; hyper driver_version; - [charset(UTF8)] uint8 formname[520]; + [charset(UTF16)] uint16 szPackageID[260]; } spoolss_CorePrinterDriver; - [public] WERROR spoolss_GetCorePrinterDrivers( + [public] HRESULT spoolss_GetCorePrinterDrivers( [in,unique] [string,charset(UTF16)] uint16 *servername, [in,ref] [string,charset(UTF16)] uint16 *architecture, [in] uint32 core_driver_size, diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index 2778ba8ca87..9c82600e72e 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -11177,11 +11177,11 @@ WERROR _spoolss_65(struct pipes_struct *p, _spoolss_GetCorePrinterDrivers ****************************************************************/ -WERROR _spoolss_GetCorePrinterDrivers(struct pipes_struct *p, - struct spoolss_GetCorePrinterDrivers *r) +HRESULT _spoolss_GetCorePrinterDrivers(struct pipes_struct *p, + struct spoolss_GetCorePrinterDrivers *r) { p->fault_state = DCERPC_FAULT_OP_RNG_ERROR; - return WERR_NOT_SUPPORTED; + return HRES_ERROR_NOT_SUPPORTED; } /****************************************************************