lcore.org gitweb
/
lcore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add support for fpc 2.2.4rc1
[lcore.git]
/
lmessages.pas
diff --git
a/lmessages.pas
b/lmessages.pas
index d6e3745b770868fe5746fedb1bfb3f9c2a049437..a7bd01ea54ce26274b71bef51afe49d0aabfa6b9 100755
(executable)
--- a/
lmessages.pas
+++ b/
lmessages.pas
@@
-99,7
+99,7
@@
procedure init;
\r
implementation
\r
uses
\r
\r
implementation
\r
uses
\r
- baseunix,unix,lcore,unixutil;//,safewriteln;
\r
+ baseunix,unix,lcore,unixutil
,ltimevalstuff,sockets
;//,safewriteln;
\r
{$i unixstuff.inc}
\r
\r
type
\r
{$i unixstuff.inc}
\r
\r
type
\r
@@
-135,7
+135,7
@@
var
//than crash after over four billion
\r
//windows have been made ;)
\r
nextwindowhandle : qword = $100000000;
\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
//findthreaddata should only be called while holding the structurelock
\r
function findthreaddata(threadid : integer) : tthreaddata;
\r
@@
-409,15
+409,15
@@
begin
//we have to get the window procedure while the structurelock
\r
//is still held as the window could be destroyed from another thread
\r
//otherwise.
\r
//we have to get the window procedure while the structurelock
\r
//is still held as the window could be destroyed from another thread
\r
//otherwise.
\r
- if window <> nil then begin
+ if window <> nil then begin
\r
windowproc := window.windowproc;
\r
windowproc := window.windowproc;
\r
- end else begin
- windowproc := nil;
- end;
+ end else begin
\r
+ windowproc := nil;
\r
+ end;
\r
finally
\r
structurelock.release;
\r
end;
\r
finally
\r
structurelock.release;
\r
end;
\r
- if
windowproc <> nil
then begin
\r
+ if
assigned(windowproc)
then begin
\r
result := windowproc(lpmsg.hwnd,lpmsg.message,lpmsg.wparam,lpmsg.lparam);
\r
end else begin
\r
result := -1;
\r
result := windowproc(lpmsg.hwnd,lpmsg.message,lpmsg.wparam,lpmsg.lparam);
\r
end else begin
\r
result := -1;
\r
@@
-494,7
+494,7
@@
end;
\r
function PeekMessage(var lpMsg: TMsg; hWnd: HWND; wMsgFilterMin, wMsgFilterMax, wRemoveMsg: UINT): WINBOOL;
\r
begin
\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
end;
\r
\r
function SetEvent(hEvent:THevent):WINBOOL;
\r