X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fwindows%2Fsystemerror.cpp;h=93aa7bd5e89fa63fd96c6b303a1ea6b5aa1ce51c;hb=HEAD;hp=98eb9ed221a3817052de50ffc7babb5797378ba8;hpb=609c9a508cfdc7b42c46c4f21d17639204165a00;p=libs%2Fcore.git diff --git a/source/core/windows/systemerror.cpp b/source/core/windows/systemerror.cpp index 98eb9ed..754c90b 100644 --- a/source/core/windows/systemerror.cpp +++ b/source/core/windows/systemerror.cpp @@ -1,4 +1,4 @@ -#include +#include "winapi.h" #include #include "systemerror.h" @@ -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());