projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c7ccf4
)
[EXPLORER] Registry key not closed on error (#3136)
author
Kyle Katarn
<contact@kcsoftwares.com>
Tue, 8 Sep 2020 19:55:45 +0000
(21:55 +0200)
committer
GitHub
<noreply@github.com>
Tue, 8 Sep 2020 19:55:45 +0000
(21:55 +0200)
CORE-14519
base/shell/explorer/shellservice.cpp
patch
|
blob
|
history
diff --git
a/base/shell/explorer/shellservice.cpp
b/base/shell/explorer/shellservice.cpp
index
2aded30
..
459e908
100644
(file)
--- a/
base/shell/explorer/shellservice.cpp
+++ b/
base/shell/explorer/shellservice.cpp
@@
-115,17
+115,18
@@
HRESULT InitShellServices(HDPA * phdpa)
goto cleanup;
}
- RegCloseKey(hkey);
-
/* Initialize */
DPA_EnumCallback(hdpa, InitializeAllCallback, &hr);
if (FAILED_UNEXPECTEDLY(hr))
goto cleanup;
+ RegCloseKey(hkey);
+
*phdpa = hdpa;
return count > 0 ? S_OK : S_FALSE;
cleanup:
+ RegCloseKey(hkey);
*phdpa = NULL;
ShutdownShellServices(hdpa);
return hr;