summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-10-02 13:26:37 +0200
committerPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-10-07 15:57:42 +0200
commit923c2387451e99fa828bafb45da006da6ceb13b5 (patch)
tree7cc39d91b642f4d03655ed38b9cc71caae6d3b77 /extensions
parentcppcheck reduce scope of var in editeng/..txtrange.cxx (diff)
downloadcore-923c2387451e99fa828bafb45da006da6ceb13b5.tar.gz
core-923c2387451e99fa828bafb45da006da6ceb13b5.zip
cppcheck reduce scope of var in extensions/..so_activex.cpp
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/activex/main/so_activex.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/extensions/source/activex/main/so_activex.cpp b/extensions/source/activex/main/so_activex.cpp
index 8618571a5a1d..94dd0ccdcf1c 100644
--- a/extensions/source/activex/main/so_activex.cpp
+++ b/extensions/source/activex/main/so_activex.cpp
@@ -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;