win32 intf: use rtl unit instead of package, use new Remove method

git-svn-id: trunk@10784 -
This commit is contained in:
micha 2007-03-22 20:54:06 +00:00
parent c05d288360
commit 4a2154935d
2 changed files with 2 additions and 3 deletions

View File

@ -44,7 +44,7 @@ Uses
Windows, Classes, ComCtrls, Controls, Buttons, Dialogs, DynHashArray,
ExtCtrls, Forms, GraphMath, GraphType, InterfaceBase, LCLIntf, LCLType,
LMessages, StdCtrls, SysUtils, Win32Def, Graphics, Menus, CommCtrl,
AvgLvlTree, JwaWinSock2;
AvgLvlTree, WinSock2;
const

View File

@ -171,8 +171,7 @@ var
lSocketEvent: PSocketEventInfo absolute AHandler;
begin
if AHandler = nil then exit;
FWaitSockets.Tree.Remove(FWaitSockets.Tree.FindKey(Pointer(lSocketEvent^.Socket),
@ComparePointerWithPtrToPtrItem));
FWaitSockets.Remove(Pointer(lSocketEvent^.Socket));
Dispose(lSocketEvent);
AHandler := nil;
end;