pidl: don't expect to have quote when creating import headers
[ira/wip.git] / pidl / lib / Parse / Pidl / Wireshark / NDR.pm
index 64b8dcf18cc6e3be45c2418c3fd39e4edce1f971..83fc3cd3bf7b73a38421b1992dd7c36c5ed93faf 100644 (file)
@@ -770,8 +770,8 @@ sub ProcessImport
        my @imports = @_;
        foreach (@imports) {
                next if($_ eq "security");
-               s/\.idl\"$//;
                s/^\"//;
+               s/\.idl"?$//;
                $self->pidl_hdr("#include \"packet-dcerpc-$_\.h\"");
        }
        $self->pidl_hdr("");