MCPcopy Create free account
hub / github.com/MicrosoftEdge/WebView2Browser / CheckFailure

Method CheckFailure

BrowserWindow.cpp:880–896  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

878}
879
880void BrowserWindow::CheckFailure(HRESULT hr, LPCWSTR errorMessage)
881{
882 if (FAILED(hr))
883 {
884 std::wstring message;
885 if (!errorMessage || !errorMessage[0])
886 {
887 message = std::wstring(L"Something went wrong.");
888 }
889 else
890 {
891 message = std::wstring(errorMessage);
892 }
893
894 MessageBoxW(nullptr, message.c_str(), nullptr, MB_OK);
895 }
896}
897
898int BrowserWindow::GetDPIAwareBound(int bound)
899{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected