No real changes, just some typo fixes for previous commits.

Fix wxCOMPtr comment and don't use "s_" for non-static variable.

Closes #14227.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-04-16 12:12:15 +00:00
parent 580ffdf4c0
commit 6f3320bf3d
2 changed files with 6 additions and 6 deletions

View File

@@ -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<IShellItem> folder;
hr = s_pfnSHCreateItemFromParsingName(m_path.wc_str(),
hr = pfnSHCreateItemFromParsingName(m_path.wc_str(),
NULL,
wxIID_PPV_ARGS(IShellItem,
&folder));