diff options
author | Gerald Carter <jerry@samba.org> | 2002-07-09 23:23:19 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2002-07-09 23:23:19 +0000 |
commit | 51eeaa494cf88b3f2438406cd8f716091069134f (patch) | |
tree | b900b1b93f6bffb25d3808568b123df015ff672c /source3/rpc_parse/parse_prs.c | |
parent | 8d26bc35813896fa2bedfb8ebddf03c349163370 (diff) | |
download | samba-51eeaa494cf88b3f2438406cd8f716091069134f.tar.gz samba-51eeaa494cf88b3f2438406cd8f716091069134f.tar.bz2 samba-51eeaa494cf88b3f2438406cd8f716091069134f.zip |
8-byte alignment needed for beginning driver_info_level_6.
Verified by looking at NT4 and 2k servers. First time
for everything I guess.
(This used to be commit f57640720e4758176116bc2e1b578cf0e867f95f)
Diffstat (limited to 'source3/rpc_parse/parse_prs.c')
-rw-r--r-- | source3/rpc_parse/parse_prs.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_prs.c b/source3/rpc_parse/parse_prs.c index 05f38ddd23..2ab8c7246e 100644 --- a/source3/rpc_parse/parse_prs.c +++ b/source3/rpc_parse/parse_prs.c @@ -447,6 +447,10 @@ BOOL prs_align(prs_struct *ps) return True; } +/****************************************************************** + Align on a 2 byte boundary + *****************************************************************/ + BOOL prs_align_uint16(prs_struct *ps) { BOOL ret; @@ -455,6 +459,23 @@ BOOL prs_align_uint16(prs_struct *ps) ps->align = 2; ret = prs_align(ps); ps->align = old_align; + + return ret; +} + +/****************************************************************** + Align on a 8 byte boundary + *****************************************************************/ + +BOOL prs_align_uint64(prs_struct *ps) +{ + BOOL ret; + uint8 old_align = ps->align; + + ps->align = 8; + ret = prs_align(ps); + ps->align = old_align; + return ret; } |