diff options
author | Jeremy Allison <jra@samba.org> | 2002-06-26 17:36:58 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-06-26 17:36:58 +0000 |
commit | caf5a36b68ea1ae15dac19ba51ca86881daeab58 (patch) | |
tree | af6f19ab27ce91e7473cb7d736110d5b31a78636 | |
parent | f0a0c6955bc4e7c587fa06599759ad9be5750573 (diff) | |
download | samba-caf5a36b68ea1ae15dac19ba51ca86881daeab58.tar.gz samba-caf5a36b68ea1ae15dac19ba51ca86881daeab58.tar.bz2 samba-caf5a36b68ea1ae15dac19ba51ca86881daeab58.zip |
Added prs_align_uint16 for SD aligns.
Jeremy.
(This used to be commit 374182a9ba4988cad407e6e6c45057069a3c5793)
-rw-r--r-- | source3/rpc_parse/parse_prs.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_prs.c b/source3/rpc_parse/parse_prs.c index cb84f9bccc..9ce1a650d8 100644 --- a/source3/rpc_parse/parse_prs.c +++ b/source3/rpc_parse/parse_prs.c @@ -447,6 +447,17 @@ BOOL prs_align(prs_struct *ps) return True; } +BOOL prs_align_uint16(prs_struct *ps) +{ + BOOL ret; + uint8 old_align = ps->align; + + ps->align = 2; + ret = prs_align(ps) + ps->align = old_align; + return ret; +} + /******************************************************************* Align only if required (for the unistr2 string mainly) ********************************************************************/ |