http://bugs.winehq.org/show_bug.cgi?id=27168
--- Comment #30 from Ilya Konovalov aragaer@gmail.com 2011-09-20 16:39:36 CDT --- (In reply to comment #29)
I still think you have to solve this more generally: MSDN documents (see especially CertCloseStore) how certificate contexts increment a reference count of stores, and a little about how this should behave. I didn't do it this way because I didn't need it when I started, and so far I hadn't found an app that depended on it. Now it appears we do have one.
Had to understand how it all works. Tried to describe it all to myself here: http://tinyurl.com/5v8b3cl Also found yet another possible workaround for the case described here. While it is looking good, I'm not going to implement it actually and will concentrate on ref counts for stores instead.