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:
Vadim Zeitlin
2000-03-19 00:56:22 +00:00
parent b59c98ddb8
commit 3b415ba4cd
6 changed files with 296 additions and 183 deletions

View File

@@ -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;