Module: wine Branch: master Commit: b224319a267441ac9cf8a99baa9ce01c6891c5f9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b224319a267441ac9cf8a99baa...
Author: Marcus Meissner marcus@jet.franken.de Date: Thu Feb 8 20:35:44 2007 +0100
devenum: Initialize hKeysub.
---
dlls/devenum/devenum_main.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/devenum/devenum_main.c b/dlls/devenum/devenum_main.c index 66b0f0e..0dde409 100644 --- a/dlls/devenum/devenum_main.c +++ b/dlls/devenum/devenum_main.c @@ -311,6 +311,7 @@ static HRESULT register_clsids(int count
for (i = 0; i < count; i++) { + hkeySub = 0; if (SUCCEEDED(res)) { res = StringFromCLSID(pRegInfo[i].clsid, &clsidString); @@ -351,7 +352,7 @@ static HRESULT register_clsids(int count (lstrlenW(pszThreadingModel) + 1) * sizeof(WCHAR)); RegCloseKey(hkeyInproc32); } - RegCloseKey(hkeySub); + if (hkeySub) RegCloseKey(hkeySub); CoTaskMemFree(clsidString); clsidString = NULL; }