diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-01-03 08:02:22 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-01-03 08:38:19 -0800 |
| commit | 960e96723f6cfe64c370b7c1168c664f4c49deae (patch) | |
| tree | b342ee0f9888daf0783d8b8c7663a7b3a8cf266d /src/platform/windows | |
| parent | 86d073f3a7511b3045f5b183954eb6cd633fe930 (diff) | |
| download | nng-960e96723f6cfe64c370b7c1168c664f4c49deae.tar.gz nng-960e96723f6cfe64c370b7c1168c664f4c49deae.tar.bz2 nng-960e96723f6cfe64c370b7c1168c664f4c49deae.zip | |
fixes #2061 Move IPC parameters from uint64 to int
Diffstat (limited to 'src/platform/windows')
| -rw-r--r-- | src/platform/windows/win_ipcconn.c | 7 |
1 files changed, 5 insertions, 2 deletions
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. <info@staysail.tech> +// Copyright 2025 Staysail Systems, Inc. <info@staysail.tech> // Copyright 2018 Capitar IT Group BV <info@capitar.com> // Copyright 2019 Devolutions <info@devolutions.net> // @@ -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[] = { |
