]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/windows/systemerror.cpp
Use nullptr instead of 0 for pointers
[libs/core.git] / source / core / windows / systemerror.cpp
index 98eb9ed221a3817052de50ffc7babb5797378ba8..93aa7bd5e89fa63fd96c6b303a1ea6b5aa1ce51c 100644 (file)
@@ -11,7 +11,7 @@ string system_error::get_message(int c)
                c = GetLastError();
 
        char msg[1024];
                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());
                return msg;
        else
                return lexical_cast<string>(c, Fmt().hex());