mirror of
https://github.com/samba-team/samba.git
synced 2025-11-13 08:23:49 +03:00
r2765: Allow functions containing WERROR values to be compiled.
Add winreg.i to list of extensions.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
c4c748ce63
commit
6f3f6de058
@@ -839,3 +839,4 @@ NTSTATUS dcerpc_pipe_connect(struct dcerpc_pipe **OUT,
|
||||
%include "librpc/gen_ndr/misc.i"
|
||||
%include "librpc/gen_ndr/lsa.i"
|
||||
%include "librpc/gen_ndr/samr.i"
|
||||
%include "librpc/gen_ndr/winreg.i"
|
||||
|
||||
@@ -34,6 +34,9 @@
|
||||
|
||||
/* For the moment treat NTSTATUS as an integer */
|
||||
|
||||
#define WERROR NTSTATUS
|
||||
|
||||
%typemap(out) NTSTATUS {
|
||||
$result = PyInt_FromLong(NT_STATUS_V($1));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user