[PATCH 1/4] winealsa: CreateEvent and CreateThread return NULL on error, not INVALID_HANDLE_VALUE.

Joerg-Cyril.Hoehle at t-systems.com Joerg-Cyril.Hoehle at t-systems.com
Tue Mar 15 08:22:38 CDT 2011


Hi,

Today I realised that this might perhaps cure the 1-2 bugs in bugzilla with
ALSA_RingMessage NULL pointer crashes in their backtrace?

Isn't this NULL/INVALID_HANDLE_VALUE mismatch a kind of fault that
Smatch/Coccinelle should have found before me?

Note that CreateEvent's success is still not always checked. I read somewhere that
there's only a smaller number of events per thread in MS-Windows. Is is a problem?
Should I add looking for unchecked CreateEvent to my TODO list?

Regards,
 Jörg Höhle
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-winealsa-CreateEvent-and-CreateThread-return-NULL-o.patch
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20110315/adff25ee/attachment.txt>


More information about the wine-patches mailing list