git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b361089
)
Added prs_align_uint16 for SD aligns.
author
Jeremy Allison
<jra@samba.org>
Wed, 26 Jun 2002 17:36:58 +0000
(17:36 +0000)
committer
Jeremy Allison
<jra@samba.org>
Wed, 26 Jun 2002 17:36:58 +0000
(17:36 +0000)
Jeremy.
source/rpc_parse/parse_prs.c
patch
|
blob
|
history
diff --git
a/source/rpc_parse/parse_prs.c
b/source/rpc_parse/parse_prs.c
index cb84f9bccc13e6d12de876f79652a8a71a0f1822..9ce1a650d857a1a3d41b613e25383499aa6f6a88 100644
(file)
--- a/
source/rpc_parse/parse_prs.c
+++ b/
source/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)
********************************************************************/