1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-12 21:58:10 +03:00

r3303: Call pull function for correct type instead of spoolss_PrinterInfo when

unmarshalling arrays.
(This used to be commit ee535b6801e553d0a180f18cc2c4b4438ee23de1)
This commit is contained in:
Tim Potter 2004-10-28 03:58:17 +00:00 committed by Gerald (Jerry) Carter
parent fe54d8bc99
commit 9d1e2b29eb

View 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";