Skip to content
Permalink
Browse files

Test fix for #1047 (crash on cefweb.dll load)

  • Loading branch information...
Jusonex committed Aug 11, 2019
1 parent 15abf7a commit 866816f63793bdbc7c14db574b12e36a8ad4edcb
Showing with 4 additions and 2 deletions.
  1. +1 −1 Client/cefweb/CWebCore.h
  2. +0 −1 Client/cefweb/CefWeb.cpp
  3. +1 −0 Client/core/CCore.cpp
  4. +2 −0 Client/sdk/core/CWebCoreInterface.h
@@ -48,7 +48,7 @@ class CWebCore : public CWebCoreInterface
public:
CWebCore();
~CWebCore();
bool Initialise();
bool Initialise() override;

CWebViewInterface* CreateWebView(unsigned int uiWidth, unsigned int uiHeight, bool bIsLocal, CWebBrowserItem* pWebBrowserRenderItem, bool bTransparent);
void DestroyWebView(CWebViewInterface* pWebViewInterface);
@@ -21,6 +21,5 @@ extern "C" _declspec(dllexport) CWebCoreInterface* InitWebCoreInterface(CCoreInt
IsMainThread();

CWebCore* pWebCore = new CWebCore;
pWebCore->Initialise();
return pWebCore;
}
@@ -1066,6 +1066,7 @@ CWebCoreInterface* CCore::GetWebCore()
if (m_pWebCore == nullptr)
{
m_pWebCore = CreateModule<CWebCoreInterface>(m_WebCoreModule, "CefWeb", "cefweb", "InitWebCoreInterface", this);
m_pWebCore->Initialise();
}
return m_pWebCore;
}
@@ -49,6 +49,8 @@ class CWebCoreInterface
{
public:
virtual ~CWebCoreInterface() {}
virtual bool Initialise() = 0;

virtual CWebViewInterface* CreateWebView(unsigned int uiWidth, unsigned int uiHeight, bool bIsLocal, CWebBrowserItem* pWebBrowserRenderItem,
bool bTransparent) = 0;
virtual void DestroyWebView(CWebViewInterface* pWebView) = 0;

0 comments on commit 866816f

Please sign in to comment.
You can’t perform that action at this time.