mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-16 04:40:40 +01:00
win32 intf: use rtl unit instead of package, use new Remove method
git-svn-id: trunk@10784 -
This commit is contained in:
parent
c05d288360
commit
4a2154935d
@ -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
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user