ole32: Return errors if the attempt to start a LocalService object fails.

This commit is contained in:
Robert Shearman 2006-08-28 14:19:13 +01:00 committed by Alexandre Julliard
parent f463b9d422
commit 679dfb029d
1 changed files with 8 additions and 3 deletions

View File

@ -833,12 +833,17 @@ static HRESULT create_local_service(REFCLSID rclsid)
RegQueryValueExW(hkey, szServiceParams, NULL, &type, (LPBYTE)args[0], &sz); RegQueryValueExW(hkey, szServiceParams, NULL, &type, (LPBYTE)args[0], &sz);
} }
r = start_local_service(buf, num_args, (LPCWSTR *)args); r = start_local_service(buf, num_args, (LPCWSTR *)args);
if (r==ERROR_SUCCESS) if (r != ERROR_SUCCESS)
hres = S_OK; hres = REGDB_E_CLASSNOTREG; /* FIXME: check retval */
HeapFree(GetProcessHeap(),0,args[0]); HeapFree(GetProcessHeap(),0,args[0]);
} }
else
{
WARN("No LocalService value\n");
hres = REGDB_E_CLASSNOTREG; /* FIXME: check retval */
}
RegCloseKey(hkey); RegCloseKey(hkey);
return hres; return hres;
} }