don't Printf() a string into itself (bug indicated by patch 1443669)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -121,9 +121,9 @@ size_t wxGetAvailableDrives(wxArrayString &paths, wxArrayString &names, wxArrayI
|
||||
wxChar pname[52];
|
||||
if (GetVolumeInformation( path.c_str(), pname, 52, NULL, NULL, NULL, NULL, 0 ))
|
||||
{
|
||||
name.Printf(wxT("%s %s"), (const wxChar*) name, pname );
|
||||
name << _T(' ') << pname;
|
||||
}
|
||||
#endif
|
||||
#endif // __WXWINCE__
|
||||
|
||||
int imageId;
|
||||
int driveType = ::GetDriveType(path);
|
||||
|
Reference in New Issue
Block a user