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:
Vadim Zeitlin
2006-03-05 20:50:25 +00:00
parent 2353544718
commit 0e5edcda8a

View File

@@ -121,9 +121,9 @@ size_t wxGetAvailableDrives(wxArrayString &paths, wxArrayString &names, wxArrayI
wxChar pname[52]; wxChar pname[52];
if (GetVolumeInformation( path.c_str(), pname, 52, NULL, NULL, NULL, NULL, 0 )) 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 imageId;
int driveType = ::GetDriveType(path); int driveType = ::GetDriveType(path);