diff options
author | Underground78 <underground78@users.sourceforge.net> | 2012-11-10 19:14:36 +0400 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2012-11-12 02:24:55 +0400 |
commit | 19f3afdfa6586b556af5886f8eaf1f1390f06612 (patch) | |
tree | b8fcc77c0e57fb52e0d6b8f03c258992e29836d9 /src/DSUtil/FileVersionInfo.cpp | |
parent | 5f99d807904e3adaa533b954df8bc37e28c7a4fe (diff) |
Properly enable memory leak detection.
Use MS define DEBUG_NEW.
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 e9dcab066..1b8f4b712 100644 --- a/src/DSUtil/FileVersionInfo.cpp +++ b/src/DSUtil/FileVersionInfo.cpp @@ -37,7 +37,7 @@ bool CFileVersionInfo::LoadInfo(LPCTSTR filePath, VS_FIXEDFILEINFO& fileInfo) DWORD dwFileVersionInfoSize = GetFileVersionInfoSize(filePath, NULL);
if (dwFileVersionInfoSize) {
// Allocate the buffer
- LPVOID lpData = (LPVOID)DNew BYTE[dwFileVersionInfoSize];
+ LPVOID lpData = (LPVOID)DEBUG_NEW BYTE[dwFileVersionInfoSize];
if (lpData) {
// Load the file-version information
if (GetFileVersionInfo(filePath, 0, dwFileVersionInfoSize, lpData)) {
|