fix a small error
authorplugwash <plugwash@p10link.net>
Sun, 15 Feb 2009 03:19:42 +0000 (03:19 +0000)
committerplugwash <plugwash@p10link.net>
Sun, 15 Feb 2009 03:19:42 +0000 (03:19 +0000)
git-svn-id: file:///svnroot/lcore/trunk@39 b1de8a11-f9be-4011-bde0-cc7ace90066a

lmessages.pas

index d6e3745b770868fe5746fedb1bfb3f9c2a049437..3aafdca70b52e0287a725a50fa36f4cd371502a3 100755 (executable)
@@ -417,7 +417,7 @@ begin
     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