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:
Vadim Zeitlin
2006-03-05 20:52:34 +00:00
parent 0e5edcda8a
commit 2934338f05

View File

@@ -118,8 +118,9 @@ size_t wxGetAvailableDrives(wxArrayString &paths, wxArrayString &names, wxArrayI
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 << _T(' ') << pname;
}