X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Floggers%2Fcritical_events.cpp;fp=nucleus%2Flibrary%2Floggers%2Fcritical_events.cpp;h=a3002d130f3834f454500ca4cb3e6990c4738026;hb=7b39f7e279005c8466ef508220a532ce2aa4abf8;hp=79f872616d7bd819555971b8c674b3d55ca498cc;hpb=3fbd372b35b15a19fb171d5ae34294ff7b1e6485;p=feisty_meow.git diff --git a/nucleus/library/loggers/critical_events.cpp b/nucleus/library/loggers/critical_events.cpp index 79f87261..a3002d13 100644 --- a/nucleus/library/loggers/critical_events.cpp +++ b/nucleus/library/loggers/critical_events.cpp @@ -70,9 +70,9 @@ astring critical_events::system_error_text(basis::un_int to_name) return strerror(to_name); #elif defined(_MSC_VER) char error_text[1000]; - FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NIL, to_name, + FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL_POINTER, to_name, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR)error_text, - sizeof(error_text) - 1, NIL); + sizeof(error_text) - 1, NULL_POINTER); astring to_return = error_text; // trim off the ridiculous carriage return they add. while ( (to_return[to_return.end()] == '\r') @@ -141,7 +141,7 @@ void critical_events::alert_message(const char *info, const char *title) to_print += info; program_wide_logger::get().log(to_print, ALWAYS_PRINT); - fflush(NIL); // flush all output streams. + fflush(NULL_POINTER); // flush all output streams. } void critical_events::alert_message(const astring &info) { alert_message(info.s()); }