Kaydet (Commit) 923c2387 authored tarafından Pierre-André Jacquod's avatar Pierre-André Jacquod

cppcheck reduce scope of var in extensions/..so_activex.cpp

üst 11f7014f
......@@ -648,12 +648,11 @@ STDAPI DllRegisterServer( void )
HRESULT aResult = E_FAIL;
HMODULE aCurModule = GetModuleHandleA( bX64 ? X64_LIB_NAME : X32_LIB_NAME );
DWORD nLen = 0;
DWORD nLibNameLen = strlen( bX64 ? X64_LIB_NAME : X32_LIB_NAME );
if( aCurModule )
{
nLen = GetModuleFileNameA( aCurModule, pProgramPath, 1024 );
DWORD nLen = GetModuleFileNameA( aCurModule, pProgramPath, 1024 );
if ( nLen && nLen > nLibNameLen + 1 )
{
pProgramPath[ nLen - nLibNameLen - 1 ] = 0;
......
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