diff --git a/include/wx/msw/private/comptr.h b/include/wx/msw/private/comptr.h index 26c21573d1..286fcdefc0 100644 --- a/include/wx/msw/private/comptr.h +++ b/include/wx/msw/private/comptr.h @@ -3,7 +3,7 @@ // Purpose: Smart pointer for COM interfaces. // Author: PB // Created: 2012-04-16 -// RCS-ID: $Id: $ +// RCS-ID: $Id$ // Copyright: (c) 2012 wxWidgets team // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -12,7 +12,7 @@ #define _WX_MSW_PRIVATE_COMPTR_H_ // ---------------------------------------------------------------------------- -// wxCOMPtr: Minimalistic a smart pointer for use with COM interfaces. +// wxCOMPtr: A minimalistic smart pointer for use with COM interfaces. // ---------------------------------------------------------------------------- template diff --git a/src/msw/dirdlg.cpp b/src/msw/dirdlg.cpp index cdc1022464..df4e4ddb54 100644 --- a/src/msw/dirdlg.cpp +++ b/src/msw/dirdlg.cpp @@ -357,21 +357,21 @@ int wxDirDialog::ShowIFileDialog(WXHWND owner) REFIID, void**); - SHCreateItemFromParsingName_t s_pfnSHCreateItemFromParsingName = NULL; + SHCreateItemFromParsingName_t pfnSHCreateItemFromParsingName = NULL; wxDynamicLibrary dllShell32; if ( dllShell32.Load(wxS("shell32.dll"), wxDL_VERBATIM | wxDL_QUIET) ) { - wxDL_INIT_FUNC(s_pfn, SHCreateItemFromParsingName, dllShell32); + wxDL_INIT_FUNC(pfn, SHCreateItemFromParsingName, dllShell32); } - if ( !s_pfnSHCreateItemFromParsingName ) + if ( !pfnSHCreateItemFromParsingName ) { wxLogLastError(wxS("SHCreateItemFromParsingName() not found")); return wxID_NONE; } wxCOMPtr folder; - hr = s_pfnSHCreateItemFromParsingName(m_path.wc_str(), + hr = pfnSHCreateItemFromParsingName(m_path.wc_str(), NULL, wxIID_PPV_ARGS(IShellItem, &folder));