* adapted for new windows unit

This commit is contained in:
peter 2000-06-11 07:06:59 +00:00
parent 3faa571532
commit 4179aaa215

View File

@ -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;