mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-07 21:45:58 +02:00
* adapted for new windows unit
This commit is contained in:
parent
3faa571532
commit
4179aaa215
@ -202,9 +202,9 @@ var
|
||||
Msg: TMsg;
|
||||
begin
|
||||
if GetCurrentThreadID = MainThreadID then
|
||||
while MsgWaitForMultipleObjects(1, @FHandle, False, INFINITE, QS_SENDMESSAGE) = WAIT_OBJECT_0 + 1 do
|
||||
PeekMessage(@Msg, 0, 0, 0, PM_NOREMOVE)
|
||||
while MsgWaitForMultipleObjects(1, FHandle, False, INFINITE, QS_SENDMESSAGE) = WAIT_OBJECT_0 + 1 do
|
||||
PeekMessage(Msg, 0, 0, 0, PM_NOREMOVE)
|
||||
else
|
||||
WaitForSingleObject(ulong(FHandle), INFINITE);
|
||||
GetExitCodeThread(FHandle, @Result);
|
||||
GetExitCodeThread(FHandle, Result);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user