summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-11-30 02:16:46 +0100
committerGünther Deschner <gd@samba.org>2007-11-30 02:16:46 +0100
commitb05ffb50652c00c721dc085ffd0938e9e6aa019b (patch)
tree9e88746d2c017fbd26d602faec961e0d56d482f3 /source3
parent7557964bee3c868181fd74e9448833fbfc95426d (diff)
downloadsamba-b05ffb50652c00c721dc085ffd0938e9e6aa019b.tar.gz
samba-b05ffb50652c00c721dc085ffd0938e9e6aa019b.tar.bz2
samba-b05ffb50652c00c721dc085ffd0938e9e6aa019b.zip
Fix _reg_perfcount_get_instance_info()
Guenther (This used to be commit 20c1ba23f2e2902ef7c2237c63addfef2ae75eac)
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_perfcount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/registry/reg_perfcount.c b/source3/registry/reg_perfcount.c
index 519e0e7488..bc22b3da72 100644
--- a/source3/registry/reg_perfcount.c
+++ b/source3/registry/reg_perfcount.c
@@ -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;
}