From 766d7dd2024c55faa46fd4b479c72fed40ef082a Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Sun, 20 Jun 2004 10:48:00 +0000 Subject: r1205: Whoops - this should fix the build. (This used to be commit e21f324937df2fe70b693112bd0b6fe6575d70ed) --- source4/rpc_server/common/common.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source4/rpc_server') diff --git a/source4/rpc_server/common/common.h b/source4/rpc_server/common/common.h index afc238f6b6..d3ae0db014 100644 --- a/source4/rpc_server/common/common.h +++ b/source4/rpc_server/common/common.h @@ -38,10 +38,13 @@ /* this checks for a valid policy handle, and gives a fault if an invalid handle or NT_STATUS_INVALID_HANDLE if the handle is of the wrong type */ -#define DCESRV_PULL_HANDLE(h, inhandle, t) do { \ +#define DCESRV_PULL_HANDLE_RETVAL(h, inhandle, t, retval) do { \ (h) = dcesrv_handle_fetch(dce_call->conn, (inhandle), DCESRV_HANDLE_ANY); \ DCESRV_CHECK_HANDLE(h); \ if ((t) != DCESRV_HANDLE_ANY && (h)->wire_handle.handle_type != (t)) { \ - return NT_STATUS_INVALID_HANDLE; \ + return retval; \ } \ } while (0) + +#define DCESRV_PULL_HANDLE(h, inhandle, t) DCESRV_PULL_HANDLE_RETVAL(h, inhandle, t, NT_STATUS_INVALID_HANDLE) +#define DCESRV_PULL_HANDLE_WERR(h, inhandle, t) DCESRV_PULL_HANDLE_RETVAL(h, inhandle, t, WERR_BADFID) -- cgit