iphlpapi: Only call res_init() once per process
Kai Blin
kai.blin at gmail.com
Thu Apr 19 00:49:40 CDT 2007
On Wednesday 18 April 2007 20:39, Hans Leidekker wrote:
> +static int resolver_initialised;
Shouldn't that be
static int resolver_initilised = 0;
here? I thought that in C, ints aren't initialized to 0 automatically.
> +/* call res_init() just once because of a bug in Mac OSX 10.4 */
> +static void initialise_resolver( void )
> +{
> + if (!resolver_initialised)
> + {
> + res_init();
> + resolver_initialised = 1;
> + }
> +}
Cheers,
Kai
--
Kai Blin, <kai Dot blin At gmail Dot com>
WorldForge developer http://www.worldforge.org/
Wine developer http://wiki.winehq.org/KaiBlin/
--
Will code for cotton.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20070419/e6ddf449/attachment.pgp
More information about the wine-devel
mailing list