wxStrdup(NULL) doesn't work
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -133,6 +133,12 @@ http://sf.net/tracker/index.php?func=detail&aid=729758&group_id=9863&atid=309863
|
||||
Checking in src/common/intl.cpp;
|
||||
/pack/cvsroots/wxwindows/wxWindows/src/common/intl.cpp,v <-- intl.cpp
|
||||
new revision: 1.95; previous revision: 1.94
|
||||
done
|
||||
Checking in intl.cpp
|
||||
/pack/cvsroots/wxwindows/wxWindows/src/common/intl.cpp,v <-- intl.cpp
|
||||
new revision: 1.102; previous revision: 1.101
|
||||
done
|
||||
|
||||
|
||||
|
||||
15. Fixes for mono bitmaps in wxGTK
|
||||
|
@@ -647,7 +647,9 @@ bool wxLocale::Init(const wxChar *szName,
|
||||
// TODO: how to find languageId
|
||||
// SetLocaleInfo(languageId, SORT_DEFAULT, localeName);
|
||||
#else
|
||||
m_pszOldLocale = wxStrdup(wxSetlocale(LC_ALL, szLocale));
|
||||
m_pszOldLocale = wxSetlocale(LC_ALL, szLocale);
|
||||
if ( m_pszOldLocale )
|
||||
m_pszOldLocale = wxStrdup(m_pszOldLocale);
|
||||
#endif
|
||||
|
||||
if ( m_pszOldLocale == NULL )
|
||||
|
Reference in New Issue
Block a user