From ab99f6b4ae8529f6ffc4cbdafd3e24581adb0fbd Mon Sep 17 00:00:00 2001
From: midipix <writeonce@midipix.org>
Date: Sun, 17 Jun 2018 06:57:41 -0400
Subject: framework api's: follow ntapi's pre-alpha update of struct
 _nt_tty_msg_info.

---
 src/daemon/ptyc_daemon_connect.c | 2 +-
 src/daemon/ptyc_daemon_loop.c    | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/daemon/ptyc_daemon_connect.c b/src/daemon/ptyc_daemon_connect.c
index d5c9171..8e61d42 100644
--- a/src/daemon/ptyc_daemon_connect.c
+++ b/src/daemon/ptyc_daemon_connect.c
@@ -15,7 +15,7 @@ int32_t __stdcall ptyc_daemon_connect(nt_tty_port_msg * msg)
 {
 	void * hport = 0;
 
-	msg->ttyinfo.reserved = 0;
+	msg->ttyinfo.exarg = 0;
 
 	ntapi->zw_accept_connect_port(
 		&hport,
diff --git a/src/daemon/ptyc_daemon_loop.c b/src/daemon/ptyc_daemon_loop.c
index 932983e..2dcbbac 100644
--- a/src/daemon/ptyc_daemon_loop.c
+++ b/src/daemon/ptyc_daemon_loop.c
@@ -80,7 +80,7 @@ int32_t __stdcall ptyc_daemon_loop(void * ctx)
 		reply->header.msg_type = NT_LPC_REPLY;
 
 		if ((opcode >= PTYC_DAEMON_OPCODE_BASE) && (opcode < PTYC_DAEMON_OPCODE_CAP)) {
-			reply->ttyinfo.reserved = (void *)request->header.client_id.process_id;
+			reply->ttyinfo.exarg = (void *)request->header.client_id.process_id;
 			opcode -= PTYC_DAEMON_OPCODE_BASE;
 
 			if (ptyc_daemon_vtbl[opcode])
@@ -88,14 +88,14 @@ int32_t __stdcall ptyc_daemon_loop(void * ctx)
 			else
 				reply->ttyinfo.status = NT_STATUS_NOT_IMPLEMENTED;
 		} else {
-			reply->ttyinfo.reserved = NT_INVALID_HANDLE_VALUE;
+			reply->ttyinfo.exarg    = NT_INVALID_HANDLE_VALUE;
 			reply->ttyinfo.status   = NT_STATUS_LPC_INVALID_CONNECTION_USAGE;
 		}
 
 		ntapi->tt_aligned_block_memset(
 			request,0,sizeof(*request));
 
-		reply = reply->ttyinfo.reserved
+		reply = reply->ttyinfo.exarg
 			? &outbuf : 0;
 
 		if (!reply)
-- 
cgit v1.2.3