summaryrefslogtreecommitdiffhomepage
path: root/src/thread
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-01-21 17:09:58 +0000
committermidipix <writeonce@midipix.org>2018-01-21 17:47:24 -0500
commitc8a12604d8e4531ac8e2bf7759ea369d6ab54d69 (patch)
tree545bbf7de5a7f383b5840c9a4e453acf7867ba23 /src/thread
parent36031705657bef0792126390429c8fd1803dbbc4 (diff)
downloadntapi-c8a12604d8e4531ac8e2bf7759ea369d6ab54d69.tar.bz2
ntapi-c8a12604d8e4531ac8e2bf7759ea369d6ab54d69.tar.xz
struct _nt_thread_params: replace the thread_id member with a complete cid.
Diffstat (limited to 'src/thread')
-rw-r--r--src/thread/ntapi_tt_create_thread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/thread/ntapi_tt_create_thread.c b/src/thread/ntapi_tt_create_thread.c
index c0ab11a..2d46996 100644
--- a/src/thread/ntapi_tt_create_thread.c
+++ b/src/thread/ntapi_tt_create_thread.c
@@ -355,7 +355,8 @@ int32_t __stdcall __ntapi_tt_create_thread(nt_thread_params * params)
__ntapi->zw_close(params->hthread);
/* and finally */
- params->thread_id = (uint32_t)cid.thread_id;
+ params->cid.process_id = cid.process_id;
+ params->cid.thread_id = cid.thread_id;
return NT_STATUS_SUCCESS;
}