Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f59989 commit 704d8b1Copy full SHA for 704d8b1
1 file changed
PC/_msi.c
@@ -351,7 +351,7 @@ record_getinteger(msiobj* record, PyObject* args)
351
PyErr_SetString(MSIError, "could not convert record field to integer");
352
return NULL;
353
}
354
- return PyInt_FromLong((long) status);
+ return PyLong_FromLong((long) status);
355
356
357
static PyObject*
@@ -375,7 +375,7 @@ record_getstring(msiobj* record, PyObject* args)
375
376
if (status != ERROR_SUCCESS)
377
return msierror((int) status);
378
- string = PyString_FromString(res);
+ string = PyUnicode_FromString(res);
379
if (buf != res)
380
free(res);
381
return string;
0 commit comments