diff options
author | Armada <jules.blok@gmail.com> | 2013-01-11 17:55:06 +0400 |
---|---|---|
committer | Armada <jules.blok@gmail.com> | 2013-01-12 14:30:14 +0400 |
commit | ff13bedddd9525e73ae3a21b1128970dc6519bfb (patch) | |
tree | d36c11905df513f80c2609e610afbafb25c9d070 /src/DSUtil/FileVersionInfo.cpp | |
parent | fd11028d826de05d59f7cfbe2e616a620524d5f1 (diff) |
DSUtil: Fix deletion of void*
Diffstat (limited to 'src/DSUtil/FileVersionInfo.cpp')
-rw-r--r-- | src/DSUtil/FileVersionInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DSUtil/FileVersionInfo.cpp b/src/DSUtil/FileVersionInfo.cpp index 1b8f4b712..3b8049ba4 100644 --- a/src/DSUtil/FileVersionInfo.cpp +++ b/src/DSUtil/FileVersionInfo.cpp @@ -37,14 +37,14 @@ bool CFileVersionInfo::LoadInfo(LPCTSTR filePath, VS_FIXEDFILEINFO& fileInfo) DWORD dwFileVersionInfoSize = GetFileVersionInfoSize(filePath, NULL);
if (dwFileVersionInfoSize) {
// Allocate the buffer
- LPVOID lpData = (LPVOID)DEBUG_NEW BYTE[dwFileVersionInfoSize];
+ BYTE* lpData = (BYTE*)DEBUG_NEW BYTE[dwFileVersionInfoSize];
if (lpData) {
// Load the file-version information
- if (GetFileVersionInfo(filePath, 0, dwFileVersionInfoSize, lpData)) {
+ if (GetFileVersionInfo(filePath, 0, dwFileVersionInfoSize, (LPVOID)lpData)) {
// Parse the version information
VS_FIXEDFILEINFO* lpInfo;
UINT unInfoLen;
- if (VerQueryValue(lpData, _T("\\"), (LPVOID*)&lpInfo, &unInfoLen)
+ if (VerQueryValue((LPVOID)lpData, _T("\\"), (LPVOID*)&lpInfo, &unInfoLen)
&& unInfoLen == sizeof(VS_FIXEDFILEINFO)) {
fileInfo = *lpInfo;
success = true;
|