diff options
Diffstat (limited to 'zen/com_error.h')
-rw-r--r-- | zen/com_error.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zen/com_error.h b/zen/com_error.h index 7f967f7c..c67c4193 100644 --- a/zen/com_error.h +++ b/zen/com_error.h @@ -63,11 +63,11 @@ Equivalent to: std::wstring formatWin32Msg(DWORD dwMessageId) //return empty string on error { std::wstring output; - LPWSTR buffer = NULL; + LPWSTR buffer = nullptr; if (::FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_MAX_WIDTH_MASK | FORMAT_MESSAGE_IGNORE_INSERTS | //important: without this flag ::FormatMessage() will fail if message contains placeholders - FORMAT_MESSAGE_ALLOCATE_BUFFER, NULL, dwMessageId, 0, reinterpret_cast<LPWSTR>(&buffer), 0, NULL) != 0) + FORMAT_MESSAGE_ALLOCATE_BUFFER, nullptr, dwMessageId, 0, reinterpret_cast<LPWSTR>(&buffer), 0, nullptr) != 0) { if (buffer) //just to be sure { |