Conformance test for bug #7286

Koshelev, Misha Vladislavo mk144210 at
Thu Feb 1 23:31:56 CST 2007

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?


-----Original Message-----
From: Dmitry Timoshkov [mailto:dmitry at]
Sent: Thu 2/1/2007 11:15 PM
To: Koshelev, Misha Vladislavo
Cc: wine-devel at
Subject: Re: Conformance test for bug #7286
"Misha Koshelev" <mk144210 at> 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.


-------------- next part --------------
An HTML attachment was scrubbed...

More information about the wine-devel mailing list