Fixed how the list of files is converted

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-11-24 17:33:33 +00:00
parent d269b7df72
commit 1fc9204a4a
2 changed files with 9 additions and 15 deletions

View File

@@ -963,11 +963,7 @@ public:
}
for (int i=0; i<count; i++) {
#if wxUSE_UNICODE
PyList_SetItem(list, i, PyUnicode_FromWideChar(files[i], files[i].Len()));
#else
PyList_SetItem(list, i, PyString_FromString((const char*)files[i]));
#endif
PyList_SetItem(list, i, wx2PyString(files[i]));
}
return list;
}