8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 22:03:03 +01:00

Fixed an exception during events shutdown, reported in fb-devel.

This commit is contained in:
dimitr 2006-03-09 17:52:17 +00:00
parent 5ecb2c4811
commit eba22db548

View File

@ -745,7 +745,9 @@ static rem_port* aux_connect(rem_port* port, PACKET* packet, t_event_ast ast)
xpm = xcc->xcc_xpm = parent_xcc->xcc_xpm;
xcc->xcc_map_num = parent_xcc->xcc_map_num;
xcc->xcc_slot = parent_xcc->xcc_slot;
xcc->xcc_proc_h = parent_xcc->xcc_proc_h;
DuplicateHandle(GetCurrentProcess(), parent_xcc->xcc_proc_h,
GetCurrentProcess(), &xcc->xcc_proc_h,
0, FALSE, DUPLICATE_SAME_ACCESS);
xcc->xcc_flags = 0;
xcc->xcc_map_handle = parent_xcc->xcc_map_handle;
xcc->xcc_mapped_addr = parent_xcc->xcc_mapped_addr;
@ -806,8 +808,6 @@ static rem_port* aux_connect(rem_port* port, PACKET* packet, t_event_ast ast)
new_port->port_flags |= PORT_async;
new_port->port_xcc = (void *) xcc;
gds__register_cleanup((FPTR_VOID_PTR) exit_handler, new_port);
return new_port;
}
catch (const std::exception&) {
@ -871,7 +871,9 @@ static rem_port* aux_request(rem_port* port, PACKET* packet)
xpm = xcc->xcc_xpm = parent_xcc->xcc_xpm;
xcc->xcc_map_num = parent_xcc->xcc_map_num;
xcc->xcc_slot = parent_xcc->xcc_slot;
xcc->xcc_proc_h = parent_xcc->xcc_proc_h;
DuplicateHandle(GetCurrentProcess(), parent_xcc->xcc_proc_h,
GetCurrentProcess(), &xcc->xcc_proc_h,
0, FALSE, DUPLICATE_SAME_ACCESS);
xcc->xcc_flags = 0;
xcc->xcc_map_handle = parent_xcc->xcc_map_handle;
xcc->xcc_mapped_addr = parent_xcc->xcc_mapped_addr;