[PATCH 0/1] MR8512: shell32: Avoid closing a handle twice.
7 Jul
7 Jul
3:27 a.m.
New subject: [PATCH 1/1] shell32: Avoid closing a handle twice.
From: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> --- dlls/shell32/assoc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/shell32/assoc.c b/dlls/shell32/assoc.c index 45e9781d078..74df71241e4 100644 --- a/dlls/shell32/assoc.c +++ b/dlls/shell32/assoc.c @@ -152,7 +152,8 @@ static ULONG WINAPI IQueryAssociations_fnRelease(IQueryAssociations *iface) { TRACE("Destroying IQueryAssociations (%p)\n", This); RegCloseKey(This->hkeySource); - RegCloseKey(This->hkeyProgID); + if (This->hkeySource != This->hkeyProgID) + RegCloseKey(This->hkeyProgID); SHFree(This); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8512
163
Age (days ago)
163
Last active (days ago)
1 comments
2 participants
participants (2)
-
Alistair Leslie-Hughes -
Alistair Leslie-Hughes (@alesliehughes)