summaryrefslogtreecommitdiff
path: root/embedserv/source
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-12-22 00:14:46 +0100
committerJulien Nabet <serval2412@yahoo.fr>2012-12-22 00:14:46 +0100
commit3567a7e324a47dbafc91b7d39031dd58677eaa6c (patch)
treed3ad0095e9df080a101e467fe455d292ec13d392 /embedserv/source
parentc0997ff4c829edfcf6123794cfbb4b8d999deb16 (diff)
Some cppcheck cleaning in embedserv
Change-Id: I49d81f482c6b97627e6e7cc3741246b70383eb5a
Diffstat (limited to 'embedserv/source')
-rw-r--r--embedserv/source/embed/ed_ioleobject.cxx2
-rw-r--r--embedserv/source/inprocserv/dllentry.cxx2
2 files changed, 1 insertions, 3 deletions
diff --git a/embedserv/source/embed/ed_ioleobject.cxx b/embedserv/source/embed/ed_ioleobject.cxx
index f51ebda3ddc3..e8651b3581cd 100644
--- a/embedserv/source/embed/ed_ioleobject.cxx
+++ b/embedserv/source/embed/ed_ioleobject.cxx
@@ -176,12 +176,10 @@ STDMETHODIMP EmbedDocument_Impl::DoVerb(
OSL_ENSURE(m_pDocHolder,"no document for inplace activation");
return m_pDocHolder->InPlaceActivate(pActiveSite,FALSE);
- break;
case OLEIVERB_UIACTIVATE:
OSL_ENSURE(m_pDocHolder,"no document for inplace activation");
return m_pDocHolder->InPlaceActivate(pActiveSite,TRUE);
- break;
case OLEIVERB_PRIMARY:
case OLEIVERB_SHOW:
OSL_ENSURE(m_pDocHolder,"no document for inplace activation");
diff --git a/embedserv/source/inprocserv/dllentry.cxx b/embedserv/source/inprocserv/dllentry.cxx
index 3fc6997184d3..3622c963f545 100644
--- a/embedserv/source/inprocserv/dllentry.cxx
+++ b/embedserv/source/inprocserv/dllentry.cxx
@@ -207,10 +207,10 @@ extern "C" STDAPI INPROC_DLLPUBLIC DllCanUnloadNow()
// -------------------------------------------------------------------------------
STDAPI INPROC_DLLPUBLIC DllRegisterServer( void )
{
- char aLibPath[1024];
HMODULE aCurModule = GetModuleHandleA( "inprocserv.dll" );
if( aCurModule )
{
+ char aLibPath[1024];
DWORD nLen = GetModuleFileNameA( aCurModule, aLibPath, 1019 );
if ( nLen && nLen < 1019 )
{