pidl:NDR: correctly handle bracket arrays with 'string'
authorStefan Metzmacher <metze@samba.org>
Thu, 5 Aug 2010 14:10:37 +0000 (16:10 +0200)
committerStefan Metzmacher <metze@samba.org>
Sun, 8 Aug 2010 09:05:19 +0000 (11:05 +0200)
metze

pidl/lib/Parse/Pidl/NDR.pm

index c1ac6001dac87379690545f0e1b1ea35585b1302..20f52bf9d5298c8f44acc2f9cbc23230018a67b1 100644 (file)
@@ -125,6 +125,10 @@ sub GetElementLevelTable($$)
                if ($d eq "*") {
                        $is_conformant = 1;
                        if ($size = shift @size_is) {
+                               if (has_property($e, "string")) {
+                                       $is_string = 1;
+                                       delete($e->{PROPERTIES}->{string});
+                               }
                        } elsif ((scalar(@size_is) == 0) and has_property($e, "string")) {
                                $is_string = 1;
                                delete($e->{PROPERTIES}->{string});