fix a small error
[lcore.git] / 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