svn commit: samba r18598 - in branches/SAMBA_3_0/source/rpc_parse: .
vlendec at samba.org
vlendec at samba.org
Sun Sep 17 20:28:46 GMT 2006
Author: vlendec
Date: 2006-09-17 20:28:46 +0000 (Sun, 17 Sep 2006)
New Revision: 18598
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18598
Log:
Add marshalling support to smb_io_time.
Volker
Modified:
branches/SAMBA_3_0/source/rpc_parse/parse_misc.c
Changeset:
Modified: branches/SAMBA_3_0/source/rpc_parse/parse_misc.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_parse/parse_misc.c 2006-09-17 20:05:09 UTC (rev 18597)
+++ branches/SAMBA_3_0/source/rpc_parse/parse_misc.c 2006-09-17 20:28:46 UTC (rev 18598)
@@ -124,13 +124,20 @@
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;
}
More information about the samba-cvs
mailing list