debug: use newer CHECK macros

This commit is contained in:
Danny Robson 2015-01-30 17:36:35 +11:00
parent f32f12ee82
commit c487a00175
2 changed files with 3 additions and 3 deletions

View File

@ -79,7 +79,7 @@ win32_error::win32_error (DWORD _id):
runtime_error ("Win32 error"),
id (_id)
{
CHECK_SOFT (id != ERROR_SUCCESS);
CHECK_NEQ (id, ERROR_SUCCESS);
}
@ -87,7 +87,7 @@ win32_error::win32_error (void):
runtime_error ("Win32 error"),
id (GetLastError ())
{
CHECK_SOFT (id != ERROR_SUCCESS);
CHECK_NEQ (id, ERROR_SUCCESS);
}

View File

@ -48,7 +48,7 @@ net::error::code_to_string (int code) {
// It should be fine to signcast the code here as Windows guarantees all
// error messages are positive but appears to use int for compatibility
DWORD output = FormatMessage (0, NULL, sign_cast<unsigned> (code), 0, message, sizeof (message), NULL);
CHECK_HARD (output != 0);
CHECK_NEQ (output, 0);
return std::string (message);
#else