kernel32/tests: check return value of alarmThread in test_NamedPipe_2()

Dmitry Timoshkov dmitry at codeweavers.com
Sat May 22 02:17:51 CDT 2010


Austin English <austinenglish at gmail.com> wrote:

>      alarmThread = CreateThread(NULL, 0, alarmThreadMain, (void *) 20000, 0, &alarmThreadId);
> +    ok(alarmThread != INVALID_HANDLE_VALUE, "CreateThread\n");

CreateThread doesn't return INVALID_HANDLE_VALUE on failure. Clarifying
the error message and printing last error (in decimal) would be better.

-- 
Dmitry.



More information about the wine-devel mailing list