summaryrefslogtreecommitdiffstats
path: root/PC/msvcrtmodule.c
diff options
context:
space:
mode:
authorRichard Oudkerk <shibturn@gmail.com>2013-06-05 22:29:30 (GMT)
committerRichard Oudkerk <shibturn@gmail.com>2013-06-05 22:29:30 (GMT)
commitac0ad884d1ecd684c392410720b27381b2316730 (patch)
treeff6ac8d74faa2c75b9eb474194708a594cbe1447 /PC/msvcrtmodule.c
parent448f1a86ef13fba826bac70f81b265dc50e333ac (diff)
downloadcpython-ac0ad884d1ecd684c392410720b27381b2316730.zip
cpython-ac0ad884d1ecd684c392410720b27381b2316730.tar.gz
cpython-ac0ad884d1ecd684c392410720b27381b2316730.tar.bz2
Issue #17931: Resolve confusion on Windows between pids and process handles.
Diffstat (limited to 'PC/msvcrtmodule.c')
-rwxr-xr-xPC/msvcrtmodule.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/PC/msvcrtmodule.c b/PC/msvcrtmodule.c
index 04d2088..18dec6d 100755
--- a/PC/msvcrtmodule.c
+++ b/PC/msvcrtmodule.c
@@ -113,11 +113,12 @@ os.O_BINARY.");
static PyObject *
msvcrt_open_osfhandle(PyObject *self, PyObject *args)
{
- long handle;
+ Py_intptr_t handle;
int flags;
int fd;
- if (!PyArg_ParseTuple(args, "li:open_osfhandle", &handle, &flags))
+ if (!PyArg_ParseTuple(args, _Py_PARSE_INTPTR "i:open_osfhandle",
+ &handle, &flags))
return NULL;
fd = _open_osfhandle(handle, flags);