From b5fabe4cf89cf19be21ae6efcb877f556749b1bc Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 17 Sep 2006 20:28:46 +0000 Subject: r18598: Add marshalling support to smb_io_time. Volker (This used to be commit 2ab0ab326210a6e2b23a15c0cfc8f21ac2fcceac) --- source3/rpc_parse/parse_misc.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/rpc_parse/parse_misc.c b/source3/rpc_parse/parse_misc.c index ef4d0e7689..cd2aabd056 100644 --- a/source3/rpc_parse/parse_misc.c +++ b/source3/rpc_parse/parse_misc.c @@ -124,13 +124,20 @@ BOOL smb_io_time(const char *desc, NTTIME *nttime, prs_struct *ps, int depth) if(!prs_align(ps)) return False; + + if (MARSHALLING(ps)) { + low = *nttime & 0xFFFFFFFF; + high = *nttime >> 32; + } if(!prs_uint32("low ", ps, depth, &low)) /* low part */ return False; if(!prs_uint32("high", ps, depth, &high)) /* high part */ return False; - *nttime = (((uint64_t)high << 32) + low); + if (UNMARSHALLING(ps)) { + *nttime = (((uint64_t)high << 32) + low); + } return True; } -- cgit