X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fwindows%2Fsystemerror.cpp;fp=source%2Fcore%2Fwindows%2Fsystemerror.cpp;h=93aa7bd5e89fa63fd96c6b303a1ea6b5aa1ce51c;hp=98eb9ed221a3817052de50ffc7babb5797378ba8;hb=41363aed34382386f915f17c1a961750b4fdcb14;hpb=26a5878092f6547e701fd1a33abbf1878d26ab70 diff --git a/source/core/windows/systemerror.cpp b/source/core/windows/systemerror.cpp index 98eb9ed..93aa7bd 100644 --- a/source/core/windows/systemerror.cpp +++ b/source/core/windows/systemerror.cpp @@ -11,7 +11,7 @@ string system_error::get_message(int c) c = GetLastError(); char msg[1024]; - if(FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, 0, c, 0, msg, sizeof(msg), 0)) + if(FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, nullptr, c, 0, msg, sizeof(msg), nullptr)) return msg; else return lexical_cast(c, Fmt().hex());