From 54942d4f34c2a2a91da9ebe966e07675aeaf1c8f Mon Sep 17 00:00:00 2001 From: Andraz Vrhovec Date: Fri, 12 Dec 2025 19:35:39 +0100 Subject: [PATCH] [v3] Fix not enough memory error when initialising drag and drop on Windows Fix not enough memory error when initialising drag and drop on windows Co-authored-by: Andraz Vrhovec Co-authored-by: Lea Anthony --- v3/pkg/application/webview_window_windows.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/v3/pkg/application/webview_window_windows.go b/v3/pkg/application/webview_window_windows.go index 8de7dc2a2..a3e33c0bd 100644 --- a/v3/pkg/application/webview_window_windows.go +++ b/v3/pkg/application/webview_window_windows.go @@ -1967,6 +1967,10 @@ func (w *windowsWebviewWindow) setupChromium() { globalApplication.handleFatalError(err) } } + + // Initialize OLE for drag-and-drop operations + w32.OleInitialise() + w.dropTarget = w32.NewDropTarget() w.dropTarget.OnDrop = func(files []string, x int, y int) { w.parent.emit(events.Windows.WindowDragDrop)