Commit a85ea9b8 authored by Jan Möbius's avatar Jan Möbius
Browse files

Use c++ casts to make cppcheck happy

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@18207 383ad7c9-94d9-4d36-a494-682f7c89f535
parent bac9b091
...@@ -824,7 +824,7 @@ public: ...@@ -824,7 +824,7 @@ public:
static bool s_useV3Version = true; static bool s_useV3Version = true;
if (s_useV3Version) if (s_useV3Version)
{ {
if (this->pSGMI(hProcess, baseAddr, (IMAGEHLP_MODULE64_V3*) pData) != FALSE) if (this->pSGMI(hProcess, baseAddr, reinterpret_cast<IMAGEHLP_MODULE64_V3*>(pData) ) != FALSE)
{ {
// only copy as much memory as is reserved... // only copy as much memory as is reserved...
memcpy(pModuleInfo, pData, sizeof(IMAGEHLP_MODULE64_V3)); memcpy(pModuleInfo, pData, sizeof(IMAGEHLP_MODULE64_V3));
...@@ -838,7 +838,7 @@ public: ...@@ -838,7 +838,7 @@ public:
// could not retrive the bigger structure, try with the smaller one (as defined in VC7.1)... // could not retrive the bigger structure, try with the smaller one (as defined in VC7.1)...
pModuleInfo->SizeOfStruct = sizeof(IMAGEHLP_MODULE64_V2); pModuleInfo->SizeOfStruct = sizeof(IMAGEHLP_MODULE64_V2);
memcpy(pData, pModuleInfo, sizeof(IMAGEHLP_MODULE64_V2)); memcpy(pData, pModuleInfo, sizeof(IMAGEHLP_MODULE64_V2));
if (this->pSGMI(hProcess, baseAddr, (IMAGEHLP_MODULE64_V3*) pData) != FALSE) if (this->pSGMI(hProcess, baseAddr, reinterpret_cast<IMAGEHLP_MODULE64_V3*>(pData) ) != FALSE)
{ {
// only copy as much memory as is reserved... // only copy as much memory as is reserved...
memcpy(pModuleInfo, pData, sizeof(IMAGEHLP_MODULE64_V2)); memcpy(pModuleInfo, pData, sizeof(IMAGEHLP_MODULE64_V2));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment