[pywin32-checkins] /hgrepo/p/py/pywin32/pywin32: Return VT_LPSTR an unicode in Pyth...
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <pyw...@li...> - 2011-06-03 01:38:52
|
changeset 4e410d25d6ad in /hgrepo/p/py/pywin32/pywin32 details: http://pywin32.hg.sourceforge.net/hgweb/pywin32/pywin32/hgrepo/p/py/pywin32/pywin32?cmd=changeset;node=4e410d25d6ad summary: Return VT_LPSTR an unicode in Python 3 diffstat: com/win32com/src/extensions/PyIPropertyStorage.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (19 lines): diff -r 504901631d56 -r 4e410d25d6ad com/win32com/src/extensions/PyIPropertyStorage.cpp --- a/com/win32com/src/extensions/PyIPropertyStorage.cpp Tue May 31 23:20:39 2011 -0400 +++ b/com/win32com/src/extensions/PyIPropertyStorage.cpp Thu Jun 02 21:29:15 2011 -0400 @@ -125,13 +125,13 @@ Py_INCREF(Py_None); return Py_None; } - return PyString_FromString(pVar->pszVal); + return PyWinCoreString_FromString(pVar->pszVal); case VT_LPSTR|VT_VECTOR: { PyObject *ret = PyList_New(pVar->calpstr.cElems); if (ret==NULL) return NULL; for (ULONG i=0; i<pVar->calpstr.cElems;i++){ - PyObject *elem=PyString_FromString(pVar->calpstr.pElems[i]); + PyObject *elem=PyWinCoreString_FromString(pVar->calpstr.pElems[i]); if (elem==NULL){ Py_DECREF(ret); return NULL; |