libuv/src
Christian Heimlich 66160d6973
win: improve accuracy of ProductName between arch (#4191)
uv_os_uname() on Windows queries the registry value "HKEY_LOCAL_MACHINE\
SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName" to fill
uv_utsname_t. If calling application was compiled for x86 and run on a
x86_64 host, that query is redirected to "Computer\HKEY_LOCAL_MACHINE\
SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\ProductName"
instead.

For whatever reason, the value of 'ProductName' in the 32-bit registry
section on 64-bit Windows sometimes differs from the 64-bit equivalent
value and is inaccurate (e.g. containing the data
"Windows 10 Enterprise" while the 64-bit value accurately contains
"Windows 10 Pro").

Adds the 'KEY_WOW64_64KEY' security descriptor when opening the
appropriate registry key so that the value of ProductName is always
taken from the primary registry on 64-bit systems, regardless of
compiled architecture. The descriptor is safely ignored on 32-bit hosts.
2023-11-01 02:30:10 +01:00
..
unix linux: disable io_uring on 32 bits arm systems (#4187) 2023-10-28 13:18:42 +02:00
win win: improve accuracy of ProductName between arch (#4191) 2023-11-01 02:30:10 +01:00
fs-poll.c win: fix style nits [NFC] (#3474) 2022-02-15 10:13:24 -05:00
heap-inl.h heap: fix heap_remove() 2014-05-23 20:04:42 +04:00
idna.c misc: export WTF8 conversion utilities (#4021) 2023-10-28 21:04:57 -04:00
idna.h misc: export WTF8 conversion utilities (#4021) 2023-10-28 21:04:57 -04:00
inet.c unix,win: fix 'sprintf' is deprecated warning (#3813) 2022-11-08 09:56:14 +01:00
queue.h unix,win: replace QUEUE with struct uv__queue (#4022) 2023-05-25 00:04:30 +02:00
random.c build,unix: add QNX support 2020-09-22 23:14:46 -04:00
strscpy.c nfci: address some style nits 2020-08-21 17:25:42 -04:00
strscpy.h hurd: unbreak build on GNU/Hurd (#3450) 2022-02-23 12:04:18 -05:00
strtok.c core: add thread-safe strtok implementation (#3553) 2022-03-22 15:15:00 -04:00
strtok.h core: add thread-safe strtok implementation (#3553) 2022-03-22 15:15:00 -04:00
thread-common.c barrier: wait for prior out before next in (#3905) 2023-03-06 17:57:25 -05:00
threadpool.c unix,win: replace QUEUE with struct uv__queue (#4022) 2023-05-25 00:04:30 +02:00
timer.c unix,win: initialize timer timeout field 2020-11-18 14:27:56 -05:00
uv-common.c src: default to stream=stderr in handle printer (#4161) 2023-10-03 13:30:16 +02:00
uv-common.h unix,win: replace QUEUE with struct uv__queue (#4022) 2023-05-25 00:04:30 +02:00
uv-data-getter-setters.c nfci: address some style nits 2020-08-21 17:25:42 -04:00
version.c core: add UV_VERSION_HEX macro 2015-06-29 23:08:41 +02:00