diff options
Diffstat (limited to 'PC/winsound.c')
-rw-r--r-- | PC/winsound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/winsound.c b/PC/winsound.c index 9ff3b7e..9fc7f6f 100644 --- a/PC/winsound.c +++ b/PC/winsound.c @@ -202,7 +202,7 @@ static struct PyMethodDef sound_methods[] = static void add_define(PyObject *dict, const char *key, long value) { - PyObject *k=PyString_FromString(key); + PyObject *k=PyUnicode_FromString(key); PyObject *v=PyLong_FromLong(value); if(v&&k) { |