From 94faf0ccbe061681de0a529b5cfd61da10d5226a Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 25 Aug 2010 11:02:52 +0200 Subject: pidl:NDR: [in,out,string] doesn't need to pointers metze --- pidl/lib/Parse/Pidl/NDR.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pidl/lib') diff --git a/pidl/lib/Parse/Pidl/NDR.pm b/pidl/lib/Parse/Pidl/NDR.pm index 2358a25956..197a92998c 100644 --- a/pidl/lib/Parse/Pidl/NDR.pm +++ b/pidl/lib/Parse/Pidl/NDR.pm @@ -104,7 +104,7 @@ sub GetElementLevelTable($$) if (has_property($e, "out")) { my $needptrs = 1; - if (has_property($e, "string")) { $needptrs++; } + if (has_property($e, "string") and not has_property($e, "in")) { $needptrs++; } if ($#bracket_array >= 0) { $needptrs = 0; } warning($e, "[out] argument `$e->{NAME}' not a pointer") if ($needptrs > $e->{POINTERS}); -- cgit