diff options
author | Underground78 <underground78@users.sourceforge.net> | 2013-05-07 23:51:09 +0400 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2013-05-09 16:57:30 +0400 |
commit | 2acb3c5749326e59f6f2c6f48692a32dc7e705f5 (patch) | |
tree | 4b6985d401ea648b1562c3b4a6bb868e61c5105d /src/DSUtil/FileVersionInfo.cpp | |
parent | ae3db48090dc9837fbb439503075521e356dcfa7 (diff) |
Use nullptr instead of NULL whenever possible.
Microsoft recommends to avoid using NULL or zero (0) as a null pointer constant since nullptr is less vulnerable to misuse and works better in most situations.
Also fix some cases where NULL was used instead of 0 or FALSE.
Diffstat (limited to 'src/DSUtil/FileVersionInfo.cpp')
-rw-r--r-- | src/DSUtil/FileVersionInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DSUtil/FileVersionInfo.cpp b/src/DSUtil/FileVersionInfo.cpp index c59ef577e..90d9b7374 100644 --- a/src/DSUtil/FileVersionInfo.cpp +++ b/src/DSUtil/FileVersionInfo.cpp @@ -34,7 +34,7 @@ bool CFileVersionInfo::LoadInfo(LPCTSTR filePath, VS_FIXEDFILEINFO& fileInfo) bool success = false;
// Get the buffer size required for the version information
- DWORD dwFileVersionInfoSize = GetFileVersionInfoSize(filePath, NULL);
+ DWORD dwFileVersionInfoSize = GetFileVersionInfoSize(filePath, nullptr);
if (dwFileVersionInfoSize) {
// Allocate the buffer
BYTE* lpData = (BYTE*)DEBUG_NEW BYTE[dwFileVersionInfoSize];
|