From aea446ba793e1cd3ad1a70efa18aab47e46d45d4 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Fri, 5 Aug 2011 23:03:29 +0400 Subject: pidl: If STR_NULLTERM we concider it's a string as well --- pidl/lib/Parse/Pidl/NDR.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pidl/lib') diff --git a/pidl/lib/Parse/Pidl/NDR.pm b/pidl/lib/Parse/Pidl/NDR.pm index d91c324b53..db776ae3ef 100644 --- a/pidl/lib/Parse/Pidl/NDR.pm +++ b/pidl/lib/Parse/Pidl/NDR.pm @@ -943,6 +943,9 @@ sub ContainsString($) { my ($e) = @_; + if (property_matches($e, "flag", ".*STR_NULLTERM.*")) { + return 1; + } foreach my $l (@{$e->{LEVELS}}) { return 1 if ($l->{TYPE} eq "ARRAY" and $l->{IS_ZERO_TERMINATED}); } -- cgit