From fbc1f326f445a2826a10155fe0122c779bb1f80e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 3 Sep 2001 10:38:13 +0000 Subject: more NTSTATUS/WERROR conversion (This used to be commit ad648c5cd8ebe4be8304379117f403d7673dcbc8) --- source3/lib/error.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/error.c b/source3/lib/error.c index 880eba5949..3f66912995 100644 --- a/source3/lib/error.c +++ b/source3/lib/error.c @@ -54,13 +54,13 @@ struct { }; /* Map an NT error code from a Unix error code */ - -uint32 map_nt_error_from_unix(int unix_error) +NTSTATUS map_nt_error_from_unix(int unix_error) { int i = 0; - /* Look through list */ + if (unix_error == 0) return NT_STATUS_OK; + /* Look through list */ while(unix_dos_nt_errmap[i].unix_error != 0) { if (unix_dos_nt_errmap[i].unix_error == unix_error) { return unix_dos_nt_errmap[i].nt_error; -- cgit