From 403f064744e648edc86a6e21b174d92330ef8642 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Fri, 5 Aug 2011 23:13:08 +0400 Subject: pidl: For wireshark check also LIBNDR_FLAG_NOALIGN for not aligning --- pidl/lib/Parse/Pidl/Wireshark/NDR.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pidl') diff --git a/pidl/lib/Parse/Pidl/Wireshark/NDR.pm b/pidl/lib/Parse/Pidl/Wireshark/NDR.pm index b54b8f0af0..45b6c1e5f6 100644 --- a/pidl/lib/Parse/Pidl/Wireshark/NDR.pm +++ b/pidl/lib/Parse/Pidl/Wireshark/NDR.pm @@ -639,7 +639,7 @@ sub Struct($$$$) $self->pidl_code("int old_offset;"); $self->pidl_code(""); - if ($e->{ALIGN} > 1) { + if ($e->{ALIGN} > 1 and not property_matches($e, "flag", ".*LIBNDR_FLAG_NOALIGN.*")) { $self->pidl_code("ALIGN_TO_$e->{ALIGN}_BYTES;"); } $self->pidl_code(""); -- cgit