diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-10-19 11:27:09 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-10-19 12:28:11 +0300 |
commit | dc87c1afb27046b08e41a400e52c5e494503f1eb (patch) | |
tree | 6959695081a57c162bcf93927e7404db84319032 /extra | |
parent | ebb8b8c31e4cd727fa593c9527577b260d552161 (diff) | |
download | bdwgc-dc87c1afb27046b08e41a400e52c5e494503f1eb.tar.gz |
Workaround 'identical inner return condition always true' cppcheck warning
* extra/msvc_dbg.c (GetModuleBase): Change if(dwAddrBase) to
if(dwAddrBase!=0).
Diffstat (limited to 'extra')
-rw-r--r-- | extra/msvc_dbg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/msvc_dbg.c b/extra/msvc_dbg.c index 8a72976b..d8e6088b 100644 --- a/extra/msvc_dbg.c +++ b/extra/msvc_dbg.c @@ -75,7 +75,7 @@ static ULONG_ADDR CALLBACK GetModuleBase(HANDLE hProcess, ULONG_ADDR dwAddress) { MEMORY_BASIC_INFORMATION memoryInfo; ULONG_ADDR dwAddrBase = SymGetModuleBase(hProcess, dwAddress); - if (dwAddrBase) { + if (dwAddrBase != 0) { return dwAddrBase; } if (VirtualQueryEx(hProcess, (void*)(GC_ULONG_PTR)dwAddress, &memoryInfo, |