Some cppcheck cleaning in embedserv
Change-Id: I49d81f482c6b97627e6e7cc3741246b70383eb5a
This commit is contained in:
@@ -176,12 +176,10 @@ STDMETHODIMP EmbedDocument_Impl::DoVerb(
|
|||||||
OSL_ENSURE(m_pDocHolder,"no document for inplace activation");
|
OSL_ENSURE(m_pDocHolder,"no document for inplace activation");
|
||||||
|
|
||||||
return m_pDocHolder->InPlaceActivate(pActiveSite,FALSE);
|
return m_pDocHolder->InPlaceActivate(pActiveSite,FALSE);
|
||||||
break;
|
|
||||||
case OLEIVERB_UIACTIVATE:
|
case OLEIVERB_UIACTIVATE:
|
||||||
OSL_ENSURE(m_pDocHolder,"no document for inplace activation");
|
OSL_ENSURE(m_pDocHolder,"no document for inplace activation");
|
||||||
|
|
||||||
return m_pDocHolder->InPlaceActivate(pActiveSite,TRUE);
|
return m_pDocHolder->InPlaceActivate(pActiveSite,TRUE);
|
||||||
break;
|
|
||||||
case OLEIVERB_PRIMARY:
|
case OLEIVERB_PRIMARY:
|
||||||
case OLEIVERB_SHOW:
|
case OLEIVERB_SHOW:
|
||||||
OSL_ENSURE(m_pDocHolder,"no document for inplace activation");
|
OSL_ENSURE(m_pDocHolder,"no document for inplace activation");
|
||||||
|
@@ -207,10 +207,10 @@ extern "C" STDAPI INPROC_DLLPUBLIC DllCanUnloadNow()
|
|||||||
// -------------------------------------------------------------------------------
|
// -------------------------------------------------------------------------------
|
||||||
STDAPI INPROC_DLLPUBLIC DllRegisterServer( void )
|
STDAPI INPROC_DLLPUBLIC DllRegisterServer( void )
|
||||||
{
|
{
|
||||||
char aLibPath[1024];
|
|
||||||
HMODULE aCurModule = GetModuleHandleA( "inprocserv.dll" );
|
HMODULE aCurModule = GetModuleHandleA( "inprocserv.dll" );
|
||||||
if( aCurModule )
|
if( aCurModule )
|
||||||
{
|
{
|
||||||
|
char aLibPath[1024];
|
||||||
DWORD nLen = GetModuleFileNameA( aCurModule, aLibPath, 1019 );
|
DWORD nLen = GetModuleFileNameA( aCurModule, aLibPath, 1019 );
|
||||||
if ( nLen && nLen < 1019 )
|
if ( nLen && nLen < 1019 )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user