Ignore:
Timestamp:
May 19, 2013, 9:20:51 AM (6 years ago)
Author:
cameron
Message:

Fixes for icXML 0.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icXML/icXML-devel/src/xercesc/util/XMLException.cpp

    r2722 r3157  
    179179
    180180    // load the text
    181         if (!gGetMsgLoader().loadMsg(toLoad, errText, msgSize))
    182         {
    183                 fMsg = XMLString::replicate
    184         (
    185         XMLUni::fgDefErrMsg
    186             , fMemoryManager
    187         );
    188                 return;
    189         }
    190 
     181    const bool found = gGetMsgLoader().loadMsg(toLoad, errText, msgSize);
    191182    // We got the text so replicate it into the message member
    192     fMsg = XMLString::replicate(errText, fMemoryManager);
     183    fMsg = XMLString::replicate(found ? errText : XMLUni::fgDefErrMsg, fMemoryManager);
    193184}
    194185
Note: See TracChangeset for help on using the changeset viewer.