summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/build/pidl/swig.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/build/pidl/swig.pm b/source4/build/pidl/swig.pm
index 922ee16f6f..20b658b19f 100644
--- a/source4/build/pidl/swig.pm
+++ b/source4/build/pidl/swig.pm
@@ -358,7 +358,9 @@ sub ParseFunction($)
if (!($fn->{RETURN_TYPE} eq "NTSTATUS")) {
$result .= "\tif (!W_ERROR_IS_OK(arg3->out.result) && \n";
- $result .= "\t\t!(W_ERROR_EQUAL(arg3->out.result, WERR_INSUFFICIENT_BUFFER))) {\n";
+ $result .= "\t\t!(W_ERROR_EQUAL(arg3->out.result, WERR_INSUFFICIENT_BUFFER)) &&\n";
+ $result .= "\t\t!(W_ERROR_EQUAL(arg3->out.result, WERR_NO_MORE_ITEMS)) &&\n";
+ $result .= "\t\t!(W_ERROR_EQUAL(arg3->out.result, WERR_MORE_DATA))) {\n";
$result .= "\t\tset_werror_exception(W_ERROR_V(arg3->out.result));\n";
$result .= "\t\tgoto fail;\n";
$result .= "\t}\n";