ole32: Return errors if the attempt to start a LocalService object fails.
This commit is contained in:
parent
f463b9d422
commit
679dfb029d
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue