\r
implementation\r
uses\r
- baseunix,unix,lcore,unixutil;//,safewriteln;\r
+ baseunix,unix,lcore,unixutil,ltimevalstuff;//,safewriteln;\r
{$i unixstuff.inc}\r
\r
type\r
//than crash after over four billion\r
//windows have been made ;)\r
nextwindowhandle : qword = $100000000;\r
-{$i ltimevalstuff.inc}\r
+\r
\r
//findthreaddata should only be called while holding the structurelock\r
function findthreaddata(threadid : integer) : tthreaddata;\r
\r
function PeekMessage(var lpMsg: TMsg; hWnd: HWND; wMsgFilterMin, wMsgFilterMax, wRemoveMsg: UINT): WINBOOL;\r
begin\r
- result := getmessageinternal(lpmsg,hwnd,wmsgfiltermin,wmsgfiltermax,PM_REMOVE,true);\r
+ result := getmessageinternal(lpmsg,hwnd,wmsgfiltermin,wmsgfiltermax,wRemoveMsg,true);\r
end;\r
\r
function SetEvent(hEvent:THevent):WINBOOL;\r