1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

werror: replace WERR_CLASS_NOT_REGISTERED with HRES_REGDB_E_CLASSNOTREG

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Günther Deschner 2015-12-09 15:12:49 +01:00 committed by Jeremy Allison
parent 05f272f492
commit 6b1c5b485c
3 changed files with 1 additions and 5 deletions

View File

@ -129,7 +129,6 @@ static const struct werror_code_struct dos_errs[] =
{ "WERR_SEC_E_DECRYPT_FAILURE", WERR_SEC_E_DECRYPT_FAILURE },
{ "WERR_SEC_E_ALGORITHM_MISMATCH", WERR_SEC_E_ALGORITHM_MISMATCH },
{ "WERR_RPC_E_REMOTE_DISABLED", WERR_RPC_E_REMOTE_DISABLED },
{ "WERR_CLASS_NOT_REGISTERED", WERR_CLASS_NOT_REGISTERED },
/*****************************************************************************
Auto-generated Win32 error from:
http://msdn.microsoft.com/en-us/library/cc231199%28PROT.10%29.aspx

View File

@ -111,9 +111,6 @@ typedef uint32_t WERROR;
#define WERR_SEC_E_DECRYPT_FAILURE W_ERROR(0x80090330)
#define WERR_SEC_E_ALGORITHM_MISMATCH W_ERROR(0x80090331)
/* COM REGDB error codes */
#define WERR_CLASS_NOT_REGISTERED W_ERROR(0x80040154) /* REGDB_E_CLASSNOTREG */
/* Generic error code aliases */
#define WERR_FOOBAR WERR_GEN_FAILURE

View File

@ -83,7 +83,7 @@ WERROR com_get_class_object(struct com_context *ctx, struct GUID *clsid, struct
iu = com_class_by_clsid(ctx, clsid);
if (!iu) {
return WERR_CLASS_NOT_REGISTERED;
return W_ERROR(HRES_ERROR_V(HRES_REGDB_E_CLASSNOTREG));
}
return IUnknown_QueryInterface(iu, ctx, iid, ip);