Fix wxMSW test build in UTF-8 and ANSI build
Use wxString::t_str() with a function taking LPCTSTR (which is either LPCWSTR or LPCSTR). And wxStrg::wc_str() for LPCOLESTR which, ordinarily, is a wide string.
This commit is contained in:
parent
07c8f15e43
commit
3e945a0a5d
1 changed files with 2 additions and 2 deletions
|
|
@ -1020,10 +1020,10 @@ void CreateShortcut(const wxString& pathFile, const wxString& pathLink)
|
|||
hr = sl->QueryInterface(IID_IPersistFile, (void **)&pf);
|
||||
CPPUNIT_ASSERT( SUCCEEDED(hr) );
|
||||
|
||||
hr = sl->SetPath(pathFile.wx_str());
|
||||
hr = sl->SetPath(pathFile.t_str());
|
||||
CPPUNIT_ASSERT( SUCCEEDED(hr) );
|
||||
|
||||
hr = pf->Save(pathLink.wx_str(), TRUE);
|
||||
hr = pf->Save(pathLink.wc_str(), TRUE);
|
||||
CPPUNIT_ASSERT( SUCCEEDED(hr) );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue