fix a bug in peekmessage
authorplugwash <plugwash@p10link.net>
Tue, 17 Feb 2009 00:51:40 +0000 (00:51 +0000)
committerplugwash <plugwash@p10link.net>
Tue, 17 Feb 2009 00:51:40 +0000 (00:51 +0000)
git-svn-id: file:///svnroot/lcore/trunk@42 b1de8a11-f9be-4011-bde0-cc7ace90066a

lmessages.pas

index 9807e42dc01db88cf262b8ae67e0df45926daf17..e17ccfe933b99e52adb663cc84b269efe28236ea 100755 (executable)
@@ -494,7 +494,7 @@ end;
 \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