[1/4] mciqtz32: Guarantees that CoInitialize and CoUninitialize work on the same thread.

Akihiro Sagawa sagawa.aki at gmail.com
Mon Mar 9 10:50:53 CDT 2015


In short, mciOpen and mciClose (both for the same device) can call in
different threads. Without this patch, mciqtz32 may call CoUninitialize
(mciClose) in another thread which doesn't call CoInitialize (mciOpen).

This patch prevents Open General[1]'s following message:
err:ole:CoUninitialize Mismatched CoUninitialize

[1] http://sourceforge.net/projects/opengeneral/
---
 dlls/mciqtz32/mciqtz.c         | 177 +++++++++++++++++++++++++++++++++++------
 dlls/mciqtz32/mciqtz_private.h |  14 +++-
 2 files changed, 166 insertions(+), 25 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mciqtz32-Guarantees-that-CoInitialize-and-CoUninitia.patch
Type: text/x-patch
Size: 11580 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150310/32bcc00d/attachment.bin>


More information about the wine-patches mailing list