Bug 1707954: Part 2 - Update Launcher Process with mscom::ProcessRuntime changes; r=Jamie

Given the changes in part 1, we must now use the `ProcessCategory` variant of
`ProcessRuntime`'s constructors.

Differential Revision: https://phabricator.services.mozilla.com/D113561
This commit is contained in:
Aaron Klotz 2021-06-14 21:53:18 +00:00
Родитель 0785438543
Коммит f3adb70f19
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -128,7 +128,8 @@ namespace mozilla {
LauncherVoidResult LaunchUnelevated(int aArgc, wchar_t* aArgv[]) { LauncherVoidResult LaunchUnelevated(int aArgc, wchar_t* aArgv[]) {
// We need COM to talk to Explorer. Using ProcessRuntime so that // We need COM to talk to Explorer. Using ProcessRuntime so that
// process-global COM configuration is done correctly // process-global COM configuration is done correctly
mozilla::mscom::ProcessRuntime mscom(GeckoProcessType_Default); mozilla::mscom::ProcessRuntime mscom(
mozilla::mscom::ProcessRuntime::ProcessCategory::Launcher);
if (!mscom) { if (!mscom) {
return LAUNCHER_ERROR_FROM_HRESULT(mscom.GetHResult()); return LAUNCHER_ERROR_FROM_HRESULT(mscom.GetHResult());
} }