From 12fb5bc0cbc8b3180d8319a169611945ae42a242 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Sun, 31 Oct 2004 05:46:18 +0000 Subject: r3406: Don't throw a werror exception for WERR_NO_MORE_ITEMS and WERR_MORE_DATA. (This used to be commit deaa5159f41a8841d75801b441e7bd5cf2636870) --- source4/build/pidl/swig.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"; -- cgit