1. fixed crash in wxDateTime::ParseDate
2. some DLL compilation fixes 3. wxHandleFatalExceptions() implemented for MSW and documented 4. some attempts to make setup0.h a bit nicer git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2987,7 +2987,7 @@ const wxChar *wxDateTime::ParseDate(const wxChar *date)
|
||||
{
|
||||
wxString date = wxGetTranslation(literalDates[n].str);
|
||||
size_t len = date.length();
|
||||
if ( wxString(p, len).CmpNoCase(date) == 0 )
|
||||
if ( wxStrlen(p) >= len && (wxString(p, len).CmpNoCase(date) == 0) )
|
||||
{
|
||||
// nothing can follow this, so stop here
|
||||
p += len;
|
||||
|
Reference in New Issue
Block a user