From: Stefan Metzmacher Date: Tue, 22 Feb 2011 14:57:21 +0000 (+0100) Subject: TODO test/review librpc: align nstring and nstring_array to 2 byte X-Git-Tag: tevent-0.9.11~218 X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=712ef2590d0ee59a4a659926cdf8aac6e968dfa8;p=ambi%2Fsamba-autobuild%2F.git TODO test/review librpc: align nstring and nstring_array to 2 byte metze --- diff --git a/librpc/idl/idl_types.h b/librpc/idl/idl_types.h index 3c6c12cd846..88ece20afec 100644 --- a/librpc/idl/idl_types.h +++ b/librpc/idl/idl_types.h @@ -12,7 +12,7 @@ /* a null terminated UCS2 string */ -#define nstring [flag(STR_NULLTERM)] string +#define nstring [flag(STR_NULLTERM|NDR_ALIGN2)] string /* an ascii string prefixed with [offset] [length], both 32 bits @@ -50,7 +50,7 @@ /* a null terminated UCS2 string */ -#define nstring_array [flag(STR_NULLTERM)] string_array +#define nstring_array [flag(STR_NULLTERM|NDR_ALIGN2)] string_array #define NDR_NOALIGN LIBNDR_FLAG_NOALIGN #define NDR_REMAINING LIBNDR_FLAG_REMAINING