diff options
-rw-r--r-- | pidl/lib/Parse/Pidl/NDR.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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}); |