Fix _reg_perfcount_get_instance_info()
authorGünther Deschner <gd@samba.org>
Fri, 30 Nov 2007 01:16:46 +0000 (02:16 +0100)
committerGünther Deschner <gd@samba.org>
Fri, 30 Nov 2007 01:16:46 +0000 (02:16 +0100)
Guenther

source/registry/reg_perfcount.c

index 519e0e74880ade1b7e8ba8f9f54fb1370be9f544..bc22b3da72f4dc91135d20ebfe446a248e17ea34 100644 (file)
@@ -714,7 +714,7 @@ bool _reg_perfcount_get_instance_info(PERF_INSTANCE_DEFINITION *inst,
                memcpy(buf, data.dptr, MIN(PERFCOUNT_MAX_LEN-1,data.dsize));
                buf[PERFCOUNT_MAX_LEN-1] = '\0';
                inst->NameLength = rpcstr_push_talloc(ps->mem_ctx, &name, buf);
-               if (inst->NameLength == (size_t)-1 || !name) {
+               if (inst->NameLength == (uint32_t)-1 || !name) {
                        SAFE_FREE(data.dptr);
                        return False;
                }