1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

r18598: Add marshalling support to smb_io_time.

Volker
This commit is contained in:
Volker Lendecke 2006-09-17 20:28:46 +00:00 committed by Gerald (Jerry) Carter
parent 528082aed8
commit 2ab0ab3262

View File

@ -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;
}