Skip to content

Commit 9415e82

Browse files
committed
Init uxtheme.go and consts.go once the dll path is set
1 parent 72316d6 commit 9415e82

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

v2/internal/frontend/desktop/windows/frontend.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
"github.com/wailsapp/wails/v2/internal/frontend/desktop/windows/winc/w32"
2828
wailsruntime "github.com/wailsapp/wails/v2/internal/frontend/runtime"
2929
"github.com/wailsapp/wails/v2/internal/logger"
30+
w32consts "github.com/wailsapp/wails/v2/internal/platform/win32"
3031
"github.com/wailsapp/wails/v2/internal/system/operatingsystem"
3132
"github.com/wailsapp/wails/v2/pkg/assetserver"
3233
"github.com/wailsapp/wails/v2/pkg/assetserver/webview"
@@ -77,7 +78,9 @@ func NewFrontend(ctx context.Context, appoptions *options.App, myLogger *logger.
7778
if appoptions.Windows != nil && appoptions.Windows.DLLSearchPaths != 0 {
7879
w.SetDefaultDllDirectories(appoptions.Windows.DLLSearchPaths)
7980
}
80-
81+
// Now initialize packages that load DLLs
82+
w32.Init()
83+
w32consts.Init()
8184
result := &Frontend{
8285
frontendOptions: appoptions,
8386
logger: myLogger,

0 commit comments

Comments
 (0)