use WXSIZEOF() instead of hardcoded number
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -118,8 +118,9 @@ size_t wxGetAvailableDrives(wxArrayString &paths, wxArrayString &names, wxArrayI
|
|||||||
name.Printf(wxT("%c:"), driveBuffer[i]);
|
name.Printf(wxT("%c:"), driveBuffer[i]);
|
||||||
|
|
||||||
#if !defined(__WXWINCE__)
|
#if !defined(__WXWINCE__)
|
||||||
wxChar pname[52];
|
wxChar pname[52]; // FIXME: why 52 and not MAX_PATH or whatever?
|
||||||
if (GetVolumeInformation( path.c_str(), pname, 52, NULL, NULL, NULL, NULL, 0 ))
|
if ( GetVolumeInformation(path, pname, WXSIZEOF(pname),
|
||||||
|
NULL, NULL, NULL, NULL, 0) )
|
||||||
{
|
{
|
||||||
name << _T(' ') << pname;
|
name << _T(' ') << pname;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user