pidl: Add a helper function to determine whether a type is a string type
[vlendec/samba-autobuild/.git] / pidl / lib / Parse / Pidl / NDR.pm
index 1f95cdfd739debbe65e2d8c6d461d1db1c9a86c4..259950959bde0e5c889ec0f66c1537a15ac6b30e 100644 (file)
@@ -608,7 +608,7 @@ sub ParseStruct($$$)
                $surrounding = $e;
        }
 
-       if (defined $e->{TYPE} && $e->{TYPE} eq "string"
+       if (defined $e->{TYPE} && Parse::Pidl::Typelist::is_string_type($e->{TYPE})
            &&  property_matches($e, "flag", ".*LIBNDR_FLAG_STR_CONFORMANT.*")) {
                $surrounding = $struct->{ELEMENTS}[-1];
        }