https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6e894bc1c7f5bec0ad858…
commit 6e894bc1c7f5bec0ad858074807d7a8b269520a2
Author: Serge Gautherie <32623169+SergeGautherie(a)users.noreply.github.com>
AuthorDate: Fri Sep 24 02:49:05 2021 +0200
Commit: GitHub <noreply(a)github.com>
CommitDate: Fri Sep 24 03:49:05 2021 +0300
[IPHLPAPI] GetAdaptersInfo(): Update Wine registry key name (#3556)
---
dll/win32/iphlpapi/iphlpapi_main.c | 5 ++---
dll/win32/iphlpapi/merge-notes.txt | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/dll/win32/iphlpapi/iphlpapi_main.c b/dll/win32/iphlpapi/iphlpapi_main.c
index 7e0b0c9cc86..7a4253ff65d 100644
--- a/dll/win32/iphlpapi/iphlpapi_main.c
+++ b/dll/win32/iphlpapi/iphlpapi_main.c
@@ -808,9 +808,8 @@ DWORD WINAPI GetAdaptersInfo(PIP_ADAPTER_INFO pAdapterInfo, PULONG
pOutBufLen)
IP_ADDRESS_STRING primaryWINS, secondaryWINS;
memset(pAdapterInfo, 0, size);
- if (RegOpenKeyExA(HKEY_LOCAL_MACHINE,
- "Software\\Wine\\Wine\\Config\\Network", 0, KEY_READ,
- &hKey) == ERROR_SUCCESS) {
+ /* @@ Wine registry key: HKCU\Software\Wine\Network */
+ if (RegOpenKeyA(HKEY_CURRENT_USER, "Software\\Wine\\Network",
&hKey) == ERROR_SUCCESS) {
DWORD size = sizeof(primaryWINS.String);
unsigned long addr;
diff --git a/dll/win32/iphlpapi/merge-notes.txt b/dll/win32/iphlpapi/merge-notes.txt
index 2b0c1bbb78c..b560edebba5 100644
--- a/dll/win32/iphlpapi/merge-notes.txt
+++ b/dll/win32/iphlpapi/merge-notes.txt
@@ -1,5 +1,5 @@
GetAdaptersInfo --
-Wine uses: Software\\Wine\\Wine\\Config\\Network
+Wine uses: HKEY_CURRENT_USER, "Software\\Wine\\Network"
-- Wins support is todo so this part isn't so important.
-- Overall, workable
Wine uses ansi functions