From: Alistair Leslie-Hughes leslie_alistair@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); }