From 808b639bb894cd36381715e603e067a5725c1760 Mon Sep 17 00:00:00 2001 From: midipix Date: Sep 09 2017 03:39:40 +0000 Subject: subsystem interfaces: optimized struct _nt_sem_info. --- diff --git a/include/ntapi/nt_sem.h b/include/ntapi/nt_sem.h index 4b6c79b..fa4cd3e 100644 --- a/include/ntapi/nt_sem.h +++ b/include/ntapi/nt_sem.h @@ -22,11 +22,10 @@ /* semaphore info */ typedef struct __attr_ptr_size_aligned__ _nt_sem_info { void * hport; - void * hprocess; - void * hthread; void * section; void * section_addr; size_t section_size; + void * hevent; void * apc_routine; void * apc_context; int32_t semkey; @@ -51,8 +50,8 @@ typedef struct __attr_ptr_size_aligned__ _nt_sem_info { uint32_t ntattr; uint32_t ntshare; uint32_t ntoptions; + nt_iosb ntiosb; nt_iosb * riosb; - void * hevent[2]; } nt_sem_info; diff --git a/src/sem/ntapi_sem_ioctl.c b/src/sem/ntapi_sem_ioctl.c index 2e7ac37..9735dfc 100644 --- a/src/sem/ntapi_sem_ioctl.c +++ b/src/sem/ntapi_sem_ioctl.c @@ -98,7 +98,7 @@ int32_t __stdcall __ntapi_sem_ioctl( msg.data.seminfo.section_addr = secaddr; msg.data.seminfo.section_size = input_buffer_length; - msg.data.seminfo.hevent[0] = hevent; + msg.data.seminfo.hevent = hevent; msg.data.seminfo.apc_routine = apc_routine; msg.data.seminfo.apc_context = apc_context; msg.data.seminfo.riosb = iosb;