From fe87348152862a6bafeb4dbb35faa1e096231e59 Mon Sep 17 00:00:00 2001 From: jacopodl Date: Wed, 22 Nov 2023 17:10:54 +0100 Subject: [PATCH] refactor: change optional parameter in Handle::waitobject from wait to timeout --- argon/vm/support/nt/handle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/argon/vm/support/nt/handle.cpp b/argon/vm/support/nt/handle.cpp index bac6d975..6d0da701 100644 --- a/argon/vm/support/nt/handle.cpp +++ b/argon/vm/support/nt/handle.cpp @@ -45,13 +45,13 @@ ARGON_METHOD(oshandle_waitobject, waitobject, "\n" "- Parameter handle: A handle to the object.\n" "- KWParameters:\n" - " - wait: The time-out interval, in milliseconds.\n" + " - timeout: The time-out interval, in milliseconds.\n" "- Remarks: See Windows WaitForSingleObject function for more details.\n", nullptr, false, true) { auto *self = (OSHandle *) _self; IntegerUnderlying millisecond = INFINITE; - if (!KParamLookupInt((Dict *) kwargs, "wait", &millisecond, INFINITE)) + if (!KParamLookupInt((Dict *) kwargs, "timeout", &millisecond, INFINITE)) return nullptr; auto ok = WaitForSingleObject(self->handle, millisecond);