projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[NETCFGX]
[reactos.git]
/
reactos
/
dll
/
win32
/
netcfgx
/
netcfgx.c
diff --git
a/reactos/dll/win32/netcfgx/netcfgx.c
b/reactos/dll/win32/netcfgx/netcfgx.c
index
175e208
..
d0df451
100644
(file)
--- a/
reactos/dll/win32/netcfgx/netcfgx.c
+++ b/
reactos/dll/win32/netcfgx/netcfgx.c
@@
-336,7
+336,7
@@
InstallNetDevice(
HKEY hNetworkKey = NULL;
HKEY hLinkageKey = NULL;
HKEY hConnectionKey = NULL;
HKEY hNetworkKey = NULL;
HKEY hLinkageKey = NULL;
HKEY hConnectionKey = NULL;
- DWORD dwShowIcon, dwLength;
+ DWORD dwShowIcon, dwLength
, dwValue
;
/* Get Instance ID */
if (SetupDiGetDeviceInstanceIdW(DeviceInfoSet, DeviceInfoData, NULL, 0, &dwLength))
/* Get Instance ID */
if (SetupDiGetDeviceInstanceIdW(DeviceInfoSet, DeviceInfoData, NULL, 0, &dwLength))
@@
-422,6
+422,13
@@
InstallNetDevice(
DPRINT("RegSetValueExW() failed with error 0x%lx\n", rc);
goto cleanup;
}
DPRINT("RegSetValueExW() failed with error 0x%lx\n", rc);
goto cleanup;
}
+ dwValue = 1;
+ rc = RegSetValueExW(hKey, L"DhcpEnabled", 0, REG_DWORD, (const BYTE*)&dwValue, sizeof(DWORD));
+ if (rc != ERROR_SUCCESS)
+ {
+ DPRINT("RegSetValueExW() failed with error 0x%lx\n", rc);
+ goto cleanup;
+ }
RegCloseKey(hKey);
hKey = NULL;
RegCloseKey(hKey);
hKey = NULL;