diff options
Diffstat (limited to 'Source/cmFileLockResult.cxx')
-rw-r--r-- | Source/cmFileLockResult.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmFileLockResult.cxx b/Source/cmFileLockResult.cxx index 70b8cdb..b7f7f38 100644 --- a/Source/cmFileLockResult.cxx +++ b/Source/cmFileLockResult.cxx @@ -56,9 +56,9 @@ std::string cmFileLockResult::GetOutputMessage() const # define WINMSG_BUF_LEN (1024) char winmsg[WINMSG_BUF_LEN]; DWORD flags = FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS; - if (FormatMessageA(flags, NULL, this->ErrorValue, + if (FormatMessageA(flags, nullptr, this->ErrorValue, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), - (LPSTR)winmsg, WINMSG_BUF_LEN, NULL)) { + (LPSTR)winmsg, WINMSG_BUF_LEN, nullptr)) { const std::string message = winmsg; return message; } else { |