summaryrefslogtreecommitdiff
path: root/Parser/myreadline.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2013-01-25 14:25:48 +0100
committerMartin v. Löwis <martin@v.loewis.de>2013-01-25 14:25:48 +0100
commitb26a9b10ea5f095da0c699e41b29a724021cd09a (patch)
tree16bc11c938232612a40e511950e5f2b5843563c7 /Parser/myreadline.c
parent3f50bf652bae5e3371972eb261973238c62cc17b (diff)
downloadcpython-git-b26a9b10ea5f095da0c699e41b29a724021cd09a.tar.gz
Replace WaitForSingleObject with WaitForSingleObjectEx,
for better WinRT compatibility.
Diffstat (limited to 'Parser/myreadline.c')
-rw-r--r--Parser/myreadline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/myreadline.c b/Parser/myreadline.c
index d864623f1a..8b27045f1d 100644
--- a/Parser/myreadline.c
+++ b/Parser/myreadline.c
@@ -68,7 +68,7 @@ my_fgets(char *buf, int len, FILE *fp)
*/
if (GetLastError()==ERROR_OPERATION_ABORTED) {
hInterruptEvent = _PyOS_SigintEvent();
- switch (WaitForSingleObject(hInterruptEvent, 10)) {
+ switch (WaitForSingleObjectEx(hInterruptEvent, 10, FALSE)) {
case WAIT_OBJECT_0:
ResetEvent(hInterruptEvent);
return 1; /* Interrupt */