From c6b134123b02fd27b2c8831b5718ccf830f52c79 Mon Sep 17 00:00:00 2001 From: Whindmar Saksit Date: Sun, 16 Mar 2025 10:09:31 +0100 Subject: [PATCH] [SHELL32] Initialize COM for PickIconDlg (#7788) CORE-20030 --- dll/win32/shell32/dialogs/dialogs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dll/win32/shell32/dialogs/dialogs.cpp b/dll/win32/shell32/dialogs/dialogs.cpp index 2ef69786079..6e11361eea4 100644 --- a/dll/win32/shell32/dialogs/dialogs.cpp +++ b/dll/win32/shell32/dialogs/dialogs.cpp @@ -354,6 +354,7 @@ BOOL WINAPI PickIconDlg( UINT nMaxFile, INT* lpdwIconIndex) { + CCoInit ComInit; // For SHAutoComplete (CORE-20030) int res; WCHAR szExpandedPath[MAX_PATH];