On Mon Apr 13 09:17:49 2026 +0000, Dmitry Timoshkov wrote:
This is clearly an application bug, and crashing in the case for file or registry store confirms that. I'd guess that the application developers didn't test their code with something different than PKCS7 store, otherwise they would notice the bug and fixed it. It looks like Windows has a different code path for a PKCS7 store, while in Wine we have the unified code for all types of stores, and making the PKCS7 store not crash on close would mean a lot of code duplication for little gain, so I'd propose to accept this patch. Like I said, this suggests that we are either failing to reference the contexts somewhere in the PKCS7 path or releasing them too early. So we need to investigate that and fix it if this hypothesis turns out to be correct.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10439#note_137077