fix for Unicode build -- wxMB2WXbuf cannot be initialized with NULL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13200 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1364,7 +1364,11 @@ const wxMB2WXbuf wxLocale::GetString(const wxChar *szOrigString,
|
|||||||
const wxChar *szDomain) const
|
const wxChar *szDomain) const
|
||||||
{
|
{
|
||||||
if ( wxIsEmpty(szOrigString) )
|
if ( wxIsEmpty(szOrigString) )
|
||||||
|
#if wxUSE_UNICODE
|
||||||
|
return szDomain ? szDomain : wxT("");
|
||||||
|
#else // ANSI
|
||||||
return szDomain;
|
return szDomain;
|
||||||
|
#endif
|
||||||
|
|
||||||
const char *pszTrans = NULL;
|
const char *pszTrans = NULL;
|
||||||
#if wxUSE_UNICODE
|
#if wxUSE_UNICODE
|
||||||
|
Reference in New Issue
Block a user