diff options
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/source/parser/rscdb.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/rsc/source/parser/rscdb.cxx b/rsc/source/parser/rscdb.cxx index 18c744cd3080..5659c66dc460 100644 --- a/rsc/source/parser/rscdb.cxx +++ b/rsc/source/parser/rscdb.cxx @@ -369,8 +369,9 @@ void RscTypCont :: Delete( Atom nRT, const RscId & rId ){ sal_uInt32 RscTypCont :: PutSysName( sal_uInt32 nRscTyp, char * pFileName, sal_uInt32 nConst, sal_uInt32 nId, BOOL bFirst ) { - RscSysEntry * pSysEntry; - BOOL bId1 = FALSE; + RscSysEntry *pSysEntry; + RscSysEntry *pFoundEntry = NULL; + BOOL bId1 = FALSE; for ( size_t i = 0, n = aSysLst.size(); i < n; ++i ) { @@ -381,9 +382,12 @@ sal_uInt32 RscTypCont :: PutSysName( sal_uInt32 nRscTyp, char * pFileName, if( pSysEntry->nRscTyp == nRscTyp && pSysEntry->nTyp == nConst && pSysEntry->nRefId == nId - ) + ) { + pFoundEntry = pSysEntry; break; + } } + pSysEntry = pFoundEntry; if ( !pSysEntry || (bFirst && !bId1) ) { |