X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1d910ac1fcebc69cda4c0b85278af09a55c9a611..18f9565d19bc65ceebf7882942ca8de1b6305cb3:/src/common/fileconf.cpp diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index 8c96c4d6bd..1ee849986d 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -49,9 +49,6 @@ #if defined(__WXPM__) #define INCL_DOS #include - #define LINKAGEMODE _Optlink -#else - #define LINKAGEMODE #endif #include @@ -471,6 +468,7 @@ void wxFileConfig::Parse(wxTextFile& file, bool bLocal) } } else { // a key + size_t count = 0; const wxChar *pEnd = pStart; while ( *pEnd != wxT('=') && !wxIsspace(*pEnd) ) { if ( *pEnd == wxT('\\') ) { @@ -479,10 +477,11 @@ void wxFileConfig::Parse(wxTextFile& file, bool bLocal) pEnd++; } + count++; pEnd++; } - wxString strKey(FilterInEntryName(wxString(pStart, pEnd))); + wxString strKey(FilterInEntryName(wxString(pStart, count))); // skip whitespace while ( isspace(*pEnd) )