From: Günther Deschner Date: Fri, 26 Sep 2008 21:39:32 +0000 (+0200) Subject: libgpo: fix invalid cast in scripts CSE. X-Git-Tag: samba-4.0.0alpha6~769^2~228^2~148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd49586b29d754e497d10ed18be5d9b27e8c4a3d;p=thirdparty%2Fsamba.git libgpo: fix invalid cast in scripts CSE. Guenther --- diff --git a/source3/libgpo/gpext/scripts.c b/source3/libgpo/gpext/scripts.c index c07407c3f0b..02c3abaa1ea 100644 --- a/source3/libgpo/gpext/scripts.c +++ b/source3/libgpo/gpext/scripts.c @@ -93,7 +93,7 @@ static NTSTATUS generate_gp_registry_entry(TALLOC_CTX *mem_ctx, data->type = data_type; switch (data->type) { case REG_QWORD: - data->v.qword = (uint64_t)data_p; + data->v.qword = *(uint64_t *)data_p; break; case REG_SZ: data->v.sz.str = talloc_strdup(mem_ctx, (char *)data_p);