I copied and pasted that code straight from the StartNotificationThread function in the same
file (well, minus the fact that I am waiting for two events, which is how the refcount problem
is brought about), that is dlls/kernel32/tests/change.c. I will change it in my patch, do I also
need to change it in the existing StartNotificationThread function?
Misha
-----Original Message-----
From: Dmitry Timoshkov [mailto:dmitry@codeweavers.com]
Sent: Thu 2/1/2007 11:15 PM
To: Koshelev, Misha Vladislavo
Cc: wine-devel@winehq.org
Subject: Re: Conformance test for bug #7286
"Misha Koshelev" <mk144210@bcm.tmc.edu> wrote:
> + /* Now create the notification thread */
> + events[1] = CreateThread(NULL, 0, NotificationThread, (LPVOID)events[0],
> + 0, &threadId);
> + ok(events[1] != INVALID_HANDLE_VALUE, "CreateThread error: %d\n", GetLastError());
CreateThread returns NULL on error, not INVALID_HANDLE_VALUE.
--
Dmitry.