]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/windows/systemerror.cpp
Add move semantics to Variant
[libs/core.git] / source / core / windows / systemerror.cpp
index 98eb9ed221a3817052de50ffc7babb5797378ba8..754c90b9c25f13c420210d2c8290b5a99eb69452 100644 (file)
@@ -1,4 +1,4 @@
-#include <windows.h>
+#include "winapi.h"
 #include <msp/strings/lexicalcast.h>
 #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<string>(c, Fmt().hex());