mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Mark discovered a bug in his patch: he didn't *use* PyExc_WindowsError
in PyErr_SetFromWindowsErrWithFilename() like he intended to... :-)
This commit is contained in:
parent
76ec0d6d76
commit
0b55670968
1 changed files with 1 additions and 1 deletions
|
@ -384,7 +384,7 @@ PyObject *PyErr_SetFromWindowsErrWithFilename(
|
||||||
else
|
else
|
||||||
v = Py_BuildValue("(is)", err, s);
|
v = Py_BuildValue("(is)", err, s);
|
||||||
if (v != NULL) {
|
if (v != NULL) {
|
||||||
PyErr_SetObject(PyExc_EnvironmentError, v);
|
PyErr_SetObject(PyExc_WindowsError, v);
|
||||||
Py_DECREF(v);
|
Py_DECREF(v);
|
||||||
}
|
}
|
||||||
LocalFree(s);
|
LocalFree(s);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue