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-09 21:38:14 +00:00
Родитель 6ff70a37d9
Коммит 85f847e2f0
1 изменённых файлов: 2 добавлений и 1 удалений

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

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