diff options
author | David Disseldorp <ddiss@samba.org> | 2012-01-23 12:18:01 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-01-23 12:18:01 -0800 |
commit | ec094bf9ac144daf3bad31e71d6bee9849e0149a (patch) | |
tree | f353badfd574aae45e2be1e5623ed95416ee2ca6 /source3 | |
parent | c3a7573a849bfbc88feed43f12b6bdc71300ab0a (diff) | |
download | samba-ec094bf9ac144daf3bad31e71d6bee9849e0149a.tar.gz samba-ec094bf9ac144daf3bad31e71d6bee9849e0149a.tar.bz2 samba-ec094bf9ac144daf3bad31e71d6bee9849e0149a.zip |
WERROR type variable being incorrectly checked with a NT_STATUS_IS_X
type macro.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/printing/nt_printing.c | 2 | ||||
-rw-r--r-- | source3/rpc_client/cli_winreg_spoolss.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 70346b24ed..7fc55c3098 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -746,7 +746,7 @@ static uint32 get_correct_cversion(struct auth_session_info *session_info, SMB_VFS_DISCONNECT(conn); conn_free(conn); } - if (!NT_STATUS_IS_OK(*perr)) { + if (!W_ERROR_IS_OK(*perr)) { cversion = -1; } diff --git a/source3/rpc_client/cli_winreg_spoolss.c b/source3/rpc_client/cli_winreg_spoolss.c index 2a6a8d1986..a50fcc7ca0 100644 --- a/source3/rpc_client/cli_winreg_spoolss.c +++ b/source3/rpc_client/cli_winreg_spoolss.c @@ -3647,7 +3647,7 @@ WERROR winreg_get_driver(TALLOC_CTX *mem_ctx, result = winreg_enumval_to_dword(info8, v, "Version", &tmp); - if (NT_STATUS_IS_OK(result)) { + if (W_ERROR_IS_OK(result)) { info8->version = (enum spoolss_DriverOSVersion) tmp; } CHECK_ERROR(result); |