summaryrefslogtreecommitdiff
path: root/pidl
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2014-04-07 15:47:43 +0200
committerJeremy Allison <jra@samba.org>2016-09-11 19:57:25 +0200
commit45748aeb593398a39c3c1db3b6047cee960e95b5 (patch)
tree8d7c9998baf357017f7371b73469dbe77e6433a0 /pidl
parentdd8553b54b7e6fad207ec09cffe039b844493755 (diff)
downloadsamba-45748aeb593398a39c3c1db3b6047cee960e95b5.tar.gz
pidl: in s3 server templates, support default HRESULT error returns.
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'pidl')
-rw-r--r--pidl/lib/Parse/Pidl/Samba3/Template.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba3/Template.pm b/pidl/lib/Parse/Pidl/Samba3/Template.pm
index 4750cef00f2..d50f7062395 100644
--- a/pidl/lib/Parse/Pidl/Samba3/Template.pm
+++ b/pidl/lib/Parse/Pidl/Samba3/Template.pm
@@ -70,6 +70,8 @@ $pad"."struct $fname *r)
$res .= "\treturn NT_STATUS_NOT_IMPLEMENTED;\n";
} elsif ($d->{RETURN_TYPE} eq "WERROR") {
$res .= "\treturn WERR_NOT_SUPPORTED;\n";
+ } elsif ($d->{RETURN_TYPE} eq "HRESULT") {
+ $res .= "\treturn HRES_ERROR_NOT_SUPPORTED;\n";
}
$res .= "}