qcap: Initialize a variable (Coverity).

oldstable
Paul Vriens 2007-01-25 09:46:40 +01:00 committed by Alexandre Julliard
parent a228eefe6d
commit 3c3e3e8d1d
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ static HRESULT SetupRegisterClass(HKEY clsid, LPCWSTR szCLSID,
LPCWSTR szServerType,
LPCWSTR szThreadingModel)
{
HKEY hkey, hsubkey;
HKEY hkey, hsubkey = NULL;
LONG ret = RegCreateKeyW(clsid, szCLSID, &hkey);
if (ERROR_SUCCESS != ret)
return HRESULT_FROM_WIN32(ret);