mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
fixed some warnings
svn path=/trunk/; revision=19119
This commit is contained in:
parent
1f024441f0
commit
33268a81ff
1 changed files with 5 additions and 5 deletions
|
@ -94,7 +94,7 @@ BOOL InternTCPIPSettings( HWND hwndDlg ) {
|
||||||
DWORD IpAddress, NetMask, Gateway;
|
DWORD IpAddress, NetMask, Gateway;
|
||||||
const char *AddressString;
|
const char *AddressString;
|
||||||
BOOL RetVal = FALSE;
|
BOOL RetVal = FALSE;
|
||||||
BOOL DhcpEnabled;
|
BOOL DhcpEnabled = FALSE;
|
||||||
MIB_IPFORWARDROW RowToAdd = { 0 };
|
MIB_IPFORWARDROW RowToAdd = { 0 };
|
||||||
|
|
||||||
if(pPage)
|
if(pPage)
|
||||||
|
@ -108,18 +108,18 @@ BOOL InternTCPIPSettings( HWND hwndDlg ) {
|
||||||
if( !GetAddressFromField
|
if( !GetAddressFromField
|
||||||
( hwndDlg, IDC_IPADDR, &IpAddress, &AddressString ) ||
|
( hwndDlg, IDC_IPADDR, &IpAddress, &AddressString ) ||
|
||||||
RegSetValueEx
|
RegSetValueEx
|
||||||
( hKey, _T("IPAddress"), 0, REG_SZ, AddressString,
|
( hKey, _T("IPAddress"), 0, REG_SZ, (const BYTE*)AddressString,
|
||||||
strlen(AddressString) ) != ERROR_SUCCESS )
|
strlen(AddressString) ) != ERROR_SUCCESS )
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if( !GetAddressFromField
|
if( !GetAddressFromField
|
||||||
( hwndDlg, IDC_SUBNETMASK, &NetMask, &AddressString ) ||
|
( hwndDlg, IDC_SUBNETMASK, &NetMask, &AddressString ) ||
|
||||||
RegSetValueEx
|
RegSetValueEx
|
||||||
( hKey, _T("SubnetMask"), 0, REG_SZ, AddressString,
|
( hKey, _T("SubnetMask"), 0, REG_SZ, (const BYTE*)AddressString,
|
||||||
strlen(AddressString) ) != ERROR_SUCCESS )
|
strlen(AddressString) ) != ERROR_SUCCESS )
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if( DhcpEnabled )
|
if( DhcpEnabled ) /* FIXME - DhcpEnabled is never initialized at this point! */
|
||||||
DhcpLeaseIpAddress( pInfo->Index );
|
DhcpLeaseIpAddress( pInfo->Index );
|
||||||
else {
|
else {
|
||||||
DhcpReleaseIpAddressLease( pInfo->Index );
|
DhcpReleaseIpAddressLease( pInfo->Index );
|
||||||
|
@ -129,7 +129,7 @@ BOOL InternTCPIPSettings( HWND hwndDlg ) {
|
||||||
if( !GetAddressFromField
|
if( !GetAddressFromField
|
||||||
( hwndDlg, IDC_DEFGATEWAY, &Gateway, &AddressString ) ||
|
( hwndDlg, IDC_DEFGATEWAY, &Gateway, &AddressString ) ||
|
||||||
RegSetValueEx
|
RegSetValueEx
|
||||||
( hKey, _T("DefaultGateway"), 0, REG_SZ, AddressString,
|
( hKey, _T("DefaultGateway"), 0, REG_SZ, (const BYTE*)AddressString,
|
||||||
strlen(AddressString) ) != ERROR_SUCCESS )
|
strlen(AddressString) ) != ERROR_SUCCESS )
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue