winrash bug

Francois Gouget fgouget at free.fr
Fri Feb 11 06:53:18 CST 2005


On Tue, 8 Feb 2005, Chris Morgan wrote:

> Oh, that's mostly because I was lazy.  I'm pretty sure the text says 
> that "if you are on windows95 you should install winsock2".  I'm not 
> sure how to detect whether the user needs to install winsock2 or not 
> by looking at dlls.
[...]

Maybe something lkie this would do?

    hdll=LoadLibrary("ws2_32.dll");
    if (!hdll)
    {
        /* You need to install winsock2 */
       ...
    }

Principle taken from autoconf: Check for features, not for the platform, 
OS version, etc. The above tries to load winsock2 so it will only 
complain if it is really missing (checking for Windows 95 would complain 
whether winsock2 is already installed or not).

-- 
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
                           "Utilisateur" (nom commun) :
        Mot utilis\xE9 par les informaticiens en lieu et place d'"idiot".



More information about the wine-devel mailing list