David is right, the address is not stored as a pointer but as a DWORD in place of the chars. Like this:
gethostbyname("winehq.org"): wrong: (DWORD) host->h_addr_list[i] = 0x00cbd1c8 = 200.209.203.0 right: *(DWORD*) host->h_addr_list[i] = 0x86192ed1 = 209.46.25.134
Patch welcome ;) --Juan