mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 851897 - Fix crash in mozilla::widget::nsWinMetroUtils::GetActivationURI. r=jimm
This commit is contained in:
parent
2a4e661b53
commit
44b6654687
@ -50,7 +50,6 @@ MetroApp::CreateView(ABI::Windows::ApplicationModel::Core::IFrameworkView **aVie
|
||||
|
||||
LogFunction();
|
||||
|
||||
sFrameworkView = Make<FrameworkView>(this);
|
||||
*aViewProvider = sFrameworkView.Get();
|
||||
return !sFrameworkView ? E_FAIL : S_OK;
|
||||
}
|
||||
@ -219,6 +218,7 @@ XRE_MetroCoreApplicationRun()
|
||||
return false;
|
||||
}
|
||||
|
||||
sFrameworkView = Make<FrameworkView>(sMetroApp.Get());
|
||||
sCoreApp->Run(sMetroApp.Get());
|
||||
|
||||
Log(L"Exiting CoreApplication::Run");
|
||||
|
@ -412,7 +412,12 @@ nsWinMetroUtils::GetHandPreference(int32_t *aHandPreference)
|
||||
NS_IMETHODIMP
|
||||
nsWinMetroUtils::GetActivationURI(nsAString &aActivationURI)
|
||||
{
|
||||
MetroApp::GetView()->GetActivationURI(aActivationURI);
|
||||
FrameworkView *view = MetroApp::GetView();
|
||||
if (!view) {
|
||||
NS_WARNING("GetActivationURI used before view is created!");
|
||||
return NS_OK;
|
||||
}
|
||||
view->GetActivationURI(aActivationURI);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user