iphlpapi: _res is per-thread in glibc with pthreads

John Klehm xixsimplicityxix at gmail.com
Mon Feb 8 00:19:04 CST 2010

On Mon, Feb 8, 2010 at 12:01 AM, Dan Kegel <dank at kegel.com> wrote:
> With test.  Without the fix, the test case crashes on my machine.
> Fixes crash in bug http://bugs.winehq.org/show_bug.cgi?id=21624
> Same fix probably needed in dnsapi, or maybe iphlpapi should
> use dnsapi rather than unix dns api.
> Thanks to AF for the analysis.

-    testWin98Functions();
+    thread = CreateThread(NULL, 0, testWin98Functions, NULL, 0, &threadId);
+    testWin98Functions(NULL);
+    WaitForSingleObject( thread, INFINITE );

Is that extra non threaded testWin98Functions(NULL) supposed to be in there?

--John Klehm

More information about the wine-devel mailing list