TODO test/review librpc: align nstring and nstring_array to 2 byte
authorStefan Metzmacher <metze@samba.org>
Tue, 22 Feb 2011 14:57:21 +0000 (15:57 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 28 Feb 2011 23:54:13 +0000 (15:54 -0800)
metze

librpc/idl/idl_types.h

index 3c6c12cd846a6c0563b01f9dd418f68402eec0a4..88ece20afec2216e64c5759e565e7d2859a9d839 100644 (file)
@@ -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