summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/ntapi.c16
-rw-r--r--src/internal/ntapi_impl.h3
2 files changed, 14 insertions, 5 deletions
diff --git a/src/internal/ntapi.c b/src/internal/ntapi.c
index a808aa1..dfb614b 100644
--- a/src/internal/ntapi.c
+++ b/src/internal/ntapi.c
@@ -89,6 +89,18 @@ static union __ntapi_img_rdata __ntapi_rdata = {{
#define import_table __ntapi_rdata.img_sec_data.__ntapi_import_table
+static int __ipc_memfn(
+ struct dalist_ex * dlist,
+ void ** addr,
+ size_t * alloc_size)
+{
+ (void)dlist;
+ (void)addr;
+ (void)alloc_size;
+
+ return DALIST_EMEMFN;
+}
+
static void __ntapi_init_adjust_privileges(void)
{
uintptr_t buffer[64];
@@ -181,7 +193,7 @@ static int32_t __fastcall __ntapi_init_once(ntapi_vtbl ** pvtbl)
&internals->ipc_conns,
sizeof(nt_ipc_conn),
NT_ALLOCATION_GRANULARITY,
- __ntapi_ipc_page_alloc,
+ __ipc_memfn,
DALIST_MEMFN_CUSTOM)))
return status;
@@ -640,7 +652,7 @@ static int32_t __ntapi_init_solib_fork_child_finalize(void)
&__internals->ipc_conns,
sizeof(nt_ipc_conn),
NT_ALLOCATION_GRANULARITY,
- __ntapi_ipc_page_alloc,
+ __ipc_memfn,
DALIST_MEMFN_CUSTOM)))
return status;
diff --git a/src/internal/ntapi_impl.h b/src/internal/ntapi_impl.h
index f565fff..43511d4 100644
--- a/src/internal/ntapi_impl.h
+++ b/src/internal/ntapi_impl.h
@@ -149,9 +149,6 @@ __attr_protected__ int32_t __ntapi_tt_open_dir_utf8(void ** hfile, void * hat, c
__attr_protected__ int32_t __ntapi_dsr_connect_internal_client(nt_daemon_params *);
__attr_protected__ int32_t __ntapi_dsr_internal_client_connect(nt_daemon_params *);
-/* ipc internals */
-__attr_protected__ int __ntapi_ipc_page_alloc(struct dalist_ex * dlist, void ** addr, size_t * alloc_size);
-
/* debug */
#define __ntidx(x) __offsetof(ntapi_vtbl,x) / sizeof(size_t)