Skip to content

Commit b8d8567

Browse files
committed
Call CoInitializeEx() on startup
1 parent 591808f commit b8d8567

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/WebView.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ int CALLBACK WinMain(
3232
_In_ int nCmdShow
3333
)
3434
{
35+
// Initialize COM for WebView
36+
std::ignore = CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
37+
3538
/////////////////////////////////////////////////////
3639
// Load config.json from same folder as executable
3740
std::string configJsonPath = FolderFromPath(GetModulePath()) + "config.json";

0 commit comments

Comments
 (0)