https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c6b134123b02fd27b2c8831b5718ccf830f52c79

commit c6b134123b02fd27b2c8831b5718ccf830f52c79
Author:     Whindmar Saksit <whinds...@proton.me>
AuthorDate: Sun Mar 16 10:09:31 2025 +0100
Commit:     GitHub <nore...@github.com>
CommitDate: Sun Mar 16 10:09:31 2025 +0100

    [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];
 

Reply via email to