diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-09-03 10:38:13 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-09-03 10:38:13 +0000 |
commit | fbc1f326f445a2826a10155fe0122c779bb1f80e (patch) | |
tree | fe1f9bae2b3f275071654f4e789991df073d9f0d /source3/lib | |
parent | 2771d77c6025dd7a1b5fbf2c0f863e334655b323 (diff) | |
download | samba-fbc1f326f445a2826a10155fe0122c779bb1f80e.tar.gz samba-fbc1f326f445a2826a10155fe0122c779bb1f80e.tar.bz2 samba-fbc1f326f445a2826a10155fe0122c779bb1f80e.zip |
more NTSTATUS/WERROR conversion
(This used to be commit ad648c5cd8ebe4be8304379117f403d7673dcbc8)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/error.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |