Ignore:
Timestamp:
Jul 26, 2002, 7:18:30 PM (23 years ago)
Author:
sandervl
Message:

Use gethostname from wsock32, not the OS/2 version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/iphlpapi/iphlpapi.cpp

    r8303 r8927  
    1 /* $Id: iphlpapi.cpp,v 1.8 2002-04-28 15:46:31 sandervl Exp $ */
     1/* $Id: iphlpapi.cpp,v 1.9 2002-07-26 17:18:29 sandervl Exp $ */
    22/*
    33 *      IPHLPAPI library
     
    7373
    7474#pragma pack()
     75
     76//We don't want to use the OS2 version directly, but the one in wsock32
     77int WIN32API ODIN_gethostname (char * name, int namelen);
    7578
    7679ODINDEBUGCHANNEL(IPHLPAPI-IPHLPAPI)
     
    453456  memset(pFixedInfo,0,memNeeded);
    454457 
    455   gethostname(fi->HostName,128);
     458  ODIN_gethostname(fi->HostName,128);
    456459  strcpy(fi->DomainName,_res.defdname);
    457460
Note: See TracChangeset for help on using the changeset viewer.