From 87e1f085b06fe4703f2fbd649e54c06ab49e7ced Mon Sep 17 00:00:00 2001 From: spacy51 Date: Thu, 10 Jan 2008 17:06:23 +0000 Subject: [PATCH] minor git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@283 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/win32/Directories.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/win32/Directories.cpp b/src/win32/Directories.cpp index 5fab5bb7..e2c5170a 100644 --- a/src/win32/Directories.cpp +++ b/src/win32/Directories.cpp @@ -267,10 +267,11 @@ CString Directories::browseForDir(CString title) bi.hwndOwner = m_hWnd; bi.lpszTitle = title; bi.pidlRoot = 0; - bi.ulFlags = BIF_RETURNONLYFSDIRS | BIF_EDITBOX | BIF_NEWDIALOGSTYLE; + bi.ulFlags = BIF_RETURNONLYFSDIRS | BIF_USENEWUI; bi.lpfn = browseCallbackProc; bi.lParam = (LPARAM)(LPCTSTR)initialFolderDir; + CoInitialize( NULL ); // required by BIF_USENEWUI pidl = SHBrowseForFolder(&bi); if(pidl) {