Author: hpoussin Date: Wed May 10 00:50:46 2006 New Revision: 21869
URL: http://svn.reactos.ru/svn/reactos?rev=21869&view=rev Log: Fix compilation with GCC4
Modified: trunk/reactos/dll/cpl/ncpa/tcpip_properties.c
Modified: trunk/reactos/dll/cpl/ncpa/tcpip_properties.c URL: http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/cpl/ncpa/tcpip_propertie... ============================================================================== --- trunk/reactos/dll/cpl/ncpa/tcpip_properties.c (original) +++ trunk/reactos/dll/cpl/ncpa/tcpip_properties.c Wed May 10 00:50:46 2006 @@ -217,17 +217,17 @@ AddressString = "0.0.0.0"; else if (!GetAddressFromField(Dlg, IDC_IPADDR, &Address, &AddressString)) goto cleanup; - rc = RegSetValueExA(hKey, "IPAddress", 0, REG_SZ, AddressString, strlen(AddressString) + 1); + rc = RegSetValueExA(hKey, "IPAddress", 0, REG_SZ, (const BYTE*)AddressString, strlen(AddressString) + 1); if (rc != ERROR_SUCCESS) goto cleanup; if (!SetIpAddressByDhcp && !GetAddressFromField(Dlg, IDC_SUBNETMASK, &Address, &AddressString)) goto cleanup; - rc = RegSetValueExA(hKey, "SubnetMask", 0, REG_SZ, AddressString, strlen(AddressString) + 1); + rc = RegSetValueExA(hKey, "SubnetMask", 0, REG_SZ, (const BYTE*)AddressString, strlen(AddressString) + 1); if (rc != ERROR_SUCCESS) goto cleanup; if (!SetIpAddressByDhcp && !GetAddressFromField(Dlg, IDC_DEFGATEWAY, &Address, &AddressString)) goto cleanup; - rc = RegSetValueExA(hKey, "DefaultGateway", 0, REG_SZ, AddressString, strlen(AddressString) + 1); + rc = RegSetValueExA(hKey, "DefaultGateway", 0, REG_SZ, (const BYTE*)AddressString, strlen(AddressString) + 1); if (rc != ERROR_SUCCESS) goto cleanup; RegCloseKey(hKey); @@ -246,7 +246,7 @@ { if (!GetAddressFromField(Dlg, IDC_DNS1, &Address, &AddressString)) goto cleanup; - rc = RegSetValueExA(hKey, "NameServer", 0, REG_SZ, AddressString, strlen(AddressString) + 1); + rc = RegSetValueExA(hKey, "NameServer", 0, REG_SZ, (const BYTE*)AddressString, strlen(AddressString) + 1); if (rc != ERROR_SUCCESS) goto cleanup; }