Skip to content

Commit 7195743

Browse files
committed
update based on review
1 parent e0e1b30 commit 7195743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_winapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@ static int winapi_exec(PyObject *m)
19291929
}
19301930

19311931
Py_INCREF(st->overlapped_type);
1932-
if (PyModule_AddObject(m, "Overlapped", (PyObject *)st->overlapped_type) < 0) {
1932+
if (PyModule_AddType(m, st->overlapped_type) < 0) {
19331933
Py_DECREF(st->overlapped_type);
19341934
return -1;
19351935
}

0 commit comments

Comments
 (0)