Changeset 56216

Show
Ignore:
Timestamp:
10/10/08 09:15:17 (6 weeks ago)
Author:
VZ
Message:

don't crash when the document contents can't be converted to the target encoding (#10064)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • wxWidgets/branches/WX_2_8_BRANCH/src/xml/xml.cpp

    r52976 r56216  
    760760 
    761761    const wxWX2MBbuf buf(str.mb_str(*(convFile ? convFile : &wxConvUTF8))); 
     762    if ( !buf ) 
     763        return; 
    762764    stream.Write((const char*)buf, strlen((const char*)buf)); 
    763765#else // !wxUSE_UNICODE