r3303: Call pull function for correct type instead of spoolss_PrinterInfo when
authorTim Potter <tpot@samba.org>
Thu, 28 Oct 2004 03:58:17 +0000 (03:58 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:04:51 +0000 (13:04 -0500)
unmarshalling arrays.
(This used to be commit ee535b6801e553d0a180f18cc2c4b4438ee23de1)

source4/build/pidl/swig.pm

index f0bb413a3be66add6363b05996091d5c29d3a696..922ee16f6f96a12b896df9ae75a55674eef792e5 100644 (file)
@@ -599,7 +599,7 @@ sub ParseUnion($)
        $result .= "\tfor (i=0;i<count;i++) {\n";
        $result .= "\t\tndr->data += ndr->offset;\n";
        $result .= "\t\tndr->offset = 0;\n";
-       $result .= "\t\tNDR_CHECK(ndr_pull_spoolss_PrinterInfo(ndr, NDR_SCALARS|NDR_BUFFERS, level, &(*info)[i]));\n";
+       $result .= "\t\tNDR_CHECK(ndr_pull_$u->{NAME}(ndr, NDR_SCALARS|NDR_BUFFERS, level, &(*info)[i]));\n";
        $result .= "\t}\n\n";
        $result .= "\treturn NT_STATUS_OK;\n";
        $result .= "\t}\n";