X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Flib%2Fcpl%2Fncpa%2Ftcpip_properties.c;h=2876b84dce8ce89539d7bd3146bbeadc780cf9dc;hp=23172ea80461136394abe913c6db031764508d0e;hb=216f6b889801e0b386e66746e5314aca271d2e88;hpb=e05a2a9e6bcf6f6d9f6c42331fd68bfc22f90f84 diff --git a/reactos/lib/cpl/ncpa/tcpip_properties.c b/reactos/lib/cpl/ncpa/tcpip_properties.c index 23172ea8046..2876b84dce8 100644 --- a/reactos/lib/cpl/ncpa/tcpip_properties.c +++ b/reactos/lib/cpl/ncpa/tcpip_properties.c @@ -179,15 +179,18 @@ TCPIPPropertyPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) while(pString->Next) pString = pString->Next; dwIPAddr = inet_addr(pString->IpAddress.String); - SendDlgItemMessage(hwndDlg,IDC_IPADDR,IPM_SETADDRESS,0,dwIPAddr); + SendDlgItemMessage(hwndDlg,IDC_IPADDR,IPM_SETADDRESS,0, + ntohl(dwIPAddr)); dwIPAddr = inet_addr(pString->IpMask.String); - SendDlgItemMessage(hwndDlg,IDC_SUBNETMASK,IPM_SETADDRESS,0,dwIPAddr); + SendDlgItemMessage(hwndDlg,IDC_SUBNETMASK,IPM_SETADDRESS,0, + ntohl(dwIPAddr)); pString = &pInfo->GatewayList; while(pString->Next) pString = pString->Next; dwIPAddr = inet_addr(pString->IpAddress.String); - SendDlgItemMessage(hwndDlg,IDC_DEFGATEWAY,IPM_SETADDRESS,0,dwIPAddr); + SendDlgItemMessage(hwndDlg,IDC_DEFGATEWAY,IPM_SETADDRESS,0, + ntohl(dwIPAddr)); } { @@ -208,7 +211,8 @@ TCPIPPropertyPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) while( NextDNSServer && StaticDNS < 2 ) { dwIPAddr = inet_addr(NextDNSServer); if( dwIPAddr != INADDR_NONE ) { - SendDlgItemMessage(hwndDlg,IDC_DNS1 + StaticDNS,IPM_SETADDRESS,0,dwIPAddr); + SendDlgItemMessage(hwndDlg,IDC_DNS1 + StaticDNS, + IPM_SETADDRESS,0,ntohl(dwIPAddr)); StaticDNS++; } NextDNSServer = strchr( pszDNS, ',' );