diff options
author | midipix <writeonce@midipix.org> | 2016-10-23 00:02:37 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-10-23 01:00:42 -0400 |
commit | 268ef4a7aa53b3be180b0d94463c36ae317359fa (patch) | |
tree | 5e04b026925fab815e110ce9f5cc95025907a414 /src/internal | |
parent | 656c604e5e206b1abd5932e910f7686dc324f3ab (diff) | |
download | ntapi-268ef4a7aa53b3be180b0d94463c36ae317359fa.tar.bz2 ntapi-268ef4a7aa53b3be180b0d94463c36ae317359fa.tar.xz |
__ntapi_tt_fork(): added resilient interface around low-level implementation.
Diffstat (limited to 'src/internal')
-rw-r--r-- | src/internal/ntapi.c | 3 | ||||
-rw-r--r-- | src/internal/ntapi_fnapi.h | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/internal/ntapi.c b/src/internal/ntapi.c index 8ebdf22..fe928ac 100644 --- a/src/internal/ntapi.c +++ b/src/internal/ntapi.c @@ -211,6 +211,7 @@ static int32_t __fastcall __ntapi_init_once(ntapi_vtbl ** pvtbl) __ntapi->tt_create_thread = __ntapi_tt_create_thread; /* nt_process.h */ + __ntapi->tt_fork = __ntapi_tt_fork; __ntapi->tt_create_remote_process_params = __ntapi_tt_create_remote_process_params; __ntapi->tt_spawn_native_process = __ntapi_tt_spawn_native_process; __ntapi->tt_get_runtime_data = __ntapi_tt_get_runtime_data; @@ -361,7 +362,6 @@ static int32_t __fastcall __ntapi_init_once(ntapi_vtbl ** pvtbl) /* OS version dependent functions */ if (__ntapi->zw_create_user_process) { - __ntapi->tt_fork = __ntapi_tt_fork_v2; __ntapi->tt_create_native_process = __ntapi_tt_create_native_process_v2; __ntapi->ipc_create_pipe = __ntapi_ipc_create_pipe_v2; __ntapi->sc_socket = __ntapi_sc_socket_v2; @@ -371,7 +371,6 @@ static int32_t __fastcall __ntapi_init_once(ntapi_vtbl ** pvtbl) __ntapi->sc_getsockname = __ntapi_sc_getsockname_v2; __ntapi->sc_getpeername = __ntapi_sc_getpeername_v2; } else { - __ntapi->tt_fork = __ntapi_tt_fork_v1; __ntapi->tt_create_native_process = __ntapi_tt_create_native_process_v1; __ntapi->ipc_create_pipe = __ntapi_ipc_create_pipe_v1; __ntapi->sc_socket = __ntapi_sc_socket_v1; diff --git a/src/internal/ntapi_fnapi.h b/src/internal/ntapi_fnapi.h index ee291ff..650839e 100644 --- a/src/internal/ntapi_fnapi.h +++ b/src/internal/ntapi_fnapi.h @@ -94,6 +94,7 @@ ntapi_tt_create_local_thread __ntapi_tt_create_local_thread; ntapi_tt_create_remote_thread __ntapi_tt_create_remote_thread; /* nt_process.h */ +ntapi_tt_fork __ntapi_tt_fork; ntapi_tt_fork __ntapi_tt_fork_v1; ntapi_tt_fork __ntapi_tt_fork_v2; ntapi_tt_create_remote_process_params __ntapi_tt_create_remote_process_params; |