Lots of updates for Unicode and GTK 2.0 support.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -256,7 +256,7 @@ selection_handler( GtkWidget *WXUNUSED(widget),
|
||||
{
|
||||
const wchar_t *wstr = (const wchar_t *)d;
|
||||
size_t len = wxConvCurrent->WC2MB(NULL, wstr, 0);
|
||||
char *str = malloc(len + 1);
|
||||
char *str = (char*) malloc(len + 1);
|
||||
wxConvCurrent->WC2MB(str, wstr, len);
|
||||
str[len] = '\0';
|
||||
|
||||
|
Reference in New Issue
Block a user