www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2001/05/01/11:39:18

Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-apps-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com
Date: Tue, 1 May 2001 19:37:34 +0400
From: egor duda <deo AT logos-m DOT ru>
X-Mailer: The Bat! (v1.45) Personal
Reply-To: egor duda <cygwin-apps AT cygwin DOT com>
Organization: deo
X-Priority: 3 (Normal)
Message-ID: <9694288379.20010501193734@logos-m.ru>
To: Craig Nelson <craig AT reversion DOT ca>
CC: egor duda <cygwin-apps AT cygwin DOT com>
Subject: Re: WSASocketA returns WSAEPROVIDERFAILEDINIT
In-reply-To: <3AEED4C8.5E7B8D7@reversion.ca>
References: <2415739582 DOT 20010430214824 AT logos-m DOT ru>
<20010430215921 DOT M24200 AT cygbert DOT vinschen DOT de>
<12786583109 DOT 20010501172908 AT logos-m DOT ru> <3AEED4C8 DOT 5E7B8D7 AT reversion DOT ca>
Mime-Version: 1.0

Hi!

Tuesday, 01 May, 2001 Craig Nelson craig AT reversion DOT ca wrote:

CN> Thanks, I'll try that out.. Do you think I can set the SYSTEMROOT
CN> in my own call to _spawnlpe() or should I apply the patch to the
CN> cygwin source and rebuild the DLL?

no, there's no need to rebuild the dll. since spawnlpe just pass
environment "as is", it's caller job to set it up. normally, you only
need to pass 'PATH', 'SHELL', 'USER', 'HOME' variables, but as it
turned out, to get winsock working, you need to pass 'SYSTEMROOT' too.

i've just scanned system32/ directory. MSWSOCK.DLL contains
'%SystemRoot%\system32\msafd.dll' string. i think that's the reason.
btw, many other dlls use %SystemRoot%, and, supposedly may break in
some subtle ways if it's empty.

Egor.            mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019