werror: replace WERR_INVALID_PARAM with WERR_INVALID_PARAMETER in source4/lib/wmi...
authorGünther Deschner <gd@samba.org>
Thu, 3 Dec 2015 14:24:27 +0000 (15:24 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 27 Sep 2016 22:04:23 +0000 (00:04 +0200)
Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/lib/wmi/wbemdata.c

index 6ee790cec424f046a15c6af67c4ffd1a9d975628..2aeda01a50e5932dd3f4f89308b9621e61769ff8 100644 (file)
@@ -204,7 +204,7 @@ WERROR IWbemClassObject_Put(struct IWbemClassObject *d, TALLOC_CTX *mem_ctx, con
        wco = (struct IWbemClassObject *)d->object_data;
        for (i = 0; i < wco->obj_class->__PROPERTY_COUNT; ++i) {
                if (!strcmp(wco->obj_class->properties[i].property.name, name)) {
-                       if (cimtype && cimtype != wco->obj_class->properties[i].property.desc->cimtype) return WERR_INVALID_PARAM;
+                       if (cimtype && cimtype != wco->obj_class->properties[i].property.desc->cimtype) return WERR_INVALID_PARAMETER;
                        wco->instance->default_flags[i] = 0;
                        duplicate_CIMVAR(wco->instance, val, &wco->instance->data[i], wco->obj_class->properties[i].property.desc->cimtype);
                        return WERR_OK;