From e6f6f2b134c08bca98df21cbbbccde8678ca4112 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 25 Aug 2015 06:40:02 -0400 Subject: __ntapi_pty_query(): explicitly cast return value from uintptr_t to uint32_t. --- src/pty/ntapi_pty_query.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/pty') diff --git a/src/pty/ntapi_pty_query.c b/src/pty/ntapi_pty_query.c index 06feace..5b2f99b 100644 --- a/src/pty/ntapi_pty_query.c +++ b/src/pty/ntapi_pty_query.c @@ -86,10 +86,10 @@ int32_t __stdcall __ntapi_pty_query( inherit->luid.low = msg.data.ctlinfo.luid.low; inherit->luid.high = msg.data.ctlinfo.luid.high; - inherit->access = msg.data.ctlinfo.ctxarg[0]; - inherit->flags = msg.data.ctlinfo.ctxarg[1]; - inherit->share = msg.data.ctlinfo.ctxarg[2]; - inherit->options = msg.data.ctlinfo.ctxarg[3]; + inherit->access = (uint32_t)msg.data.ctlinfo.ctxarg[0]; + inherit->flags = (uint32_t)msg.data.ctlinfo.ctxarg[1]; + inherit->share = (uint32_t)msg.data.ctlinfo.ctxarg[2]; + inherit->options = (uint32_t)msg.data.ctlinfo.ctxarg[3]; __ntapi->tt_guid_copy( &inherit->guid, -- cgit v1.2.3