From e6f6f2b134c08bca98df21cbbbccde8678ca4112 Mon Sep 17 00:00:00 2001 From: midipix Date: Sep 26 2015 15:17:17 +0000 Subject: __ntapi_pty_query(): explicitly cast return value from uintptr_t to uint32_t. --- 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,