Cleaner fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25365 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
00d90a911f
commit
50b079e598
@ -599,13 +599,7 @@ int vfwprintf(FILE *stream, const wxChar *format, va_list argptr)
|
||||
if ( rc != -1 )
|
||||
{
|
||||
// we can't do much better without Unicode support in libc...
|
||||
if ( fprintf(stream, "%s",
|
||||
#if wxUSE_UNICODE
|
||||
s.mb_str().data()
|
||||
#else
|
||||
s.c_str()
|
||||
#endif
|
||||
) == -1 )
|
||||
if ( fprintf(stream, "%s", (const char*)s.mb_str() ) == -1 )
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user