shell32/tests: Fix race conditions

Greg Geldorp ggeldorp at vmware.com
Tue Dec 28 06:34:11 CST 2010


There were 2 possible race conditions:
Event winetest_shlexec_dde_ready was created in both the parent and child
process. It was possible that the event was created, set and closed in the
child before it was created in the parent. In effect, that would mean that
the parent created a new event.
The other race condition was that the main thread of a child could exit
before the thread handling DDE messages was done replying to the client.
---
 dlls/shell32/tests/shlexec.c |   17 +++++++----------
 1 files changed, 7 insertions(+), 10 deletions(-)



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-shell32-tests-Fix-race-conditions.patch
Type: text/x-patch
Size: 2297 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20101228/d18a648a/attachment.bin>


More information about the wine-patches mailing list