Skip to content

Commit

Permalink
refactor: change optional parameter in Handle::waitobject from wait t…
Browse files Browse the repository at this point in the history
…o timeout
  • Loading branch information
jacopodl committed Nov 22, 2023
1 parent 6a9693e commit fe87348
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions argon/vm/support/nt/handle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fe87348

Please sign in to comment.