lcore.org gitweb
/
lcore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix a small error
[lcore.git]
/
lmessages.pas
diff --git
a/lmessages.pas
b/lmessages.pas
index 1b7db62b6380bc046dc64b41b2c85a68cad90f86..3aafdca70b52e0287a725a50fa36f4cd371502a3 100755
(executable)
--- a/
lmessages.pas
+++ b/
lmessages.pas
@@
-409,11
+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
- windowproc := window.windowproc;
\r
+ if window <> nil then begin
+ windowproc := window.windowproc;
\r
+ end else begin
+ windowproc := nil;
+ end;
finally
\r
structurelock.release;
\r
end;
\r
finally
\r
structurelock.release;
\r
end;
\r
- if
window <> 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