Commit 0b556709 authored by Guido van Rossum's avatar Guido van Rossum

Mark discovered a bug in his patch: he didn't *use* PyExc_WindowsError

in PyErr_SetFromWindowsErrWithFilename() like he intended to... :-)
parent 76ec0d6d
......@@ -384,7 +384,7 @@ PyObject *PyErr_SetFromWindowsErrWithFilename(
else
v = Py_BuildValue("(is)", err, s);
if (v != NULL) {
PyErr_SetObject(PyExc_EnvironmentError, v);
PyErr_SetObject(PyExc_WindowsError, v);
Py_DECREF(v);
}
LocalFree(s);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment