diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/rc/resmgr.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tools/source/rc/resmgr.cxx b/tools/source/rc/resmgr.cxx index 27d0cd71b9d0..6e0f34842254 100644 --- a/tools/source/rc/resmgr.cxx +++ b/tools/source/rc/resmgr.cxx @@ -1075,15 +1075,11 @@ void * ResMgr::GetResourceSkipHeader( const ResId& rResId, ResMgr ** ppResMgr ) { osl::Guard<osl::Mutex> aGuard( getResMgrMutex() ); - DBG_ASSERT( rResId.GetResMgr(), "illegal ResId without ResMgr" ); *ppResMgr = rResId.GetResMgr(); - if( *ppResMgr ) - { - (*ppResMgr)->GetResource( rResId ); - (*ppResMgr)->Increment( sizeof( RSHEADER_TYPE ) ); - return (*ppResMgr)->GetClass(); - } - return getEmptyBuffer(); + assert(*ppResMgr != nullptr); + (*ppResMgr)->GetResource( rResId ); + (*ppResMgr)->Increment( sizeof( RSHEADER_TYPE ) ); + return (*ppResMgr)->GetClass(); } void ResMgr::PopContext( const Resource* pResObj ) |