From 960e96723f6cfe64c370b7c1168c664f4c49deae Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 3 Jan 2025 08:02:22 -0800 Subject: fixes #2061 Move IPC parameters from uint64 to int --- src/platform/windows/win_ipcconn.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/platform/windows') diff --git a/src/platform/windows/win_ipcconn.c b/src/platform/windows/win_ipcconn.c index f6c1b2a4..353d703f 100644 --- a/src/platform/windows/win_ipcconn.c +++ b/src/platform/windows/win_ipcconn.c @@ -1,5 +1,5 @@ // -// Copyright 2024 Staysail Systems, Inc. +// Copyright 2025 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // Copyright 2019 Devolutions // @@ -407,7 +407,10 @@ ipc_conn_get_peer_pid(void *c, void *buf, size_t *szp, nni_opt_type t) return (nni_win_error(GetLastError())); } } - return (nni_copyout_u64(id, buf, szp, t)); + // While the above APIs take ULONG, the actual process IDs in + // Windows are DWORD (i.e. int). See GetProcessId() that returns an + // int. + return (nni_copyout_int((int) id, buf, szp, t)); } static const nni_option ipc_conn_options[] = { -- cgit v1.2.3-70-g09d2