WaitForThreadTerminate wrong implemetation
Original Reporter info from Mantis: whiskey
-
Reporter name:
Original Reporter info from Mantis: whiskey
- Reporter name:
Description:
in rtl/win/systhrd.inc:
function SysWaitForThreadTerminate returns result of WaitForSingleObject call instead of thread exit code (as described in documentation)
Additional information:
function SysWaitForThreadTerminate (threadHandle : TThreadID; TimeoutMs : longint): dword;
begin
if timeoutMs = 0 then dec (timeoutMs); // $ffffffff is INFINITE
SysWaitForThreadTerminate := WaitForSingleObject(threadHandle, TimeoutMs);
end;
Mantis conversion info:
- Mantis ID: 16492
- OS: Windows
- Platform: x86
- Version: 2.4.0
- Monitored by: » whiskey (whiskey), » skalogryyz (Dmitry Boyarintsev), » Laksen (Jeppe Johansen)