name.Printf(wxT("%c:"), driveBuffer[i]);
#if !defined(__WXWINCE__)
- wxChar pname[52];
- if (GetVolumeInformation( path.c_str(), pname, 52, NULL, NULL, NULL, NULL, 0 ))
+ wxChar pname[52]; // FIXME: why 52 and not MAX_PATH or whatever?
+ if ( GetVolumeInformation(path, pname, WXSIZEOF(pname),
+ 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);