Stupid save all didn't safe it all ...
diff --git a/PC/msvcrtmodule.c b/PC/msvcrtmodule.c
index 982c458..e110ed8 100755
--- a/PC/msvcrtmodule.c
+++ b/PC/msvcrtmodule.c
@@ -214,13 +214,14 @@
if (!PyArg_ParseTuple(args, "u#:putwch", &ch, &size))
return NULL;
- if (size == 1)
- _putwch(*ch);
- Py_RETURN_NONE;
- else {
+ if (size == 0) {
PyErr_SetString(PyExc_ValueError,
- "Expected unicode of length 1");
+ "Expected unicode string of length 1");
+ return NULL;
}
+ _putwch(*ch);
+ Py_RETURN_NONE;
+
}
static PyObject *