fixed some warnings Modified: trunk/reactos/lib/cpl/ncpa/tcpip_properties.c _____
Modified: trunk/reactos/lib/cpl/ncpa/tcpip_properties.c --- trunk/reactos/lib/cpl/ncpa/tcpip_properties.c 2005-11-10 13:37:56 UTC (rev 19118) +++ trunk/reactos/lib/cpl/ncpa/tcpip_properties.c 2005-11-10 14:02:20 UTC (rev 19119) @@ -94,7 +94,7 @@
DWORD IpAddress, NetMask, Gateway; const char *AddressString; BOOL RetVal = FALSE; - BOOL DhcpEnabled; + BOOL DhcpEnabled = FALSE; MIB_IPFORWARDROW RowToAdd = { 0 };
if(pPage) @@ -108,18 +108,18 @@ if( !GetAddressFromField ( hwndDlg, IDC_IPADDR, &IpAddress, &AddressString ) || RegSetValueEx - ( hKey, _T("IPAddress"), 0, REG_SZ, AddressString, + ( hKey, _T("IPAddress"), 0, REG_SZ, (const BYTE*)AddressString, strlen(AddressString) ) != ERROR_SUCCESS ) goto cleanup;
if( !GetAddressFromField ( hwndDlg, IDC_SUBNETMASK, &NetMask, &AddressString ) || RegSetValueEx - ( hKey, _T("SubnetMask"), 0, REG_SZ, AddressString, + ( hKey, _T("SubnetMask"), 0, REG_SZ, (const BYTE*)AddressString, strlen(AddressString) ) != ERROR_SUCCESS ) goto cleanup;
- if( DhcpEnabled ) + if( DhcpEnabled ) /* FIXME - DhcpEnabled is never initialized at this point! */ DhcpLeaseIpAddress( pInfo->Index ); else { DhcpReleaseIpAddressLease( pInfo->Index ); @@ -129,7 +129,7 @@ if( !GetAddressFromField ( hwndDlg, IDC_DEFGATEWAY, &Gateway, &AddressString ) || RegSetValueEx - ( hKey, _T("DefaultGateway"), 0, REG_SZ, AddressString, + ( hKey, _T("DefaultGateway"), 0, REG_SZ, (const BYTE*)AddressString, strlen(AddressString) ) != ERROR_SUCCESS ) goto cleanup;