mirror of
https://github.com/samba-team/samba.git
synced 2025-07-31 20:22:15 +03:00
the next step in our error code handling change
- added WERROR for win32 error codes
- added a configure test for immediate structures
still lots to do, so its not enabled by default, but the main
structure is there
(This used to be commit 24f9ab683d
)
This commit is contained in:
@ -182,3 +182,14 @@ char *smb_errstr(char *inbuf)
|
||||
slprintf(ret, sizeof(ret) - 1, "Error: Unknown error (%d,%d)",class,num);
|
||||
return(ret);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
returns an WERROR error message.
|
||||
*****************************************************************************/
|
||||
char *werror_str(WERROR status)
|
||||
{
|
||||
static fstring msg;
|
||||
slprintf(msg, sizeof(msg), "WIN32 code 0x%08x", W_ERROR_V(status));
|
||||
return msg;
|
||||
}
|
||||
|
Reference in New Issue
Block a user