X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0e5edcda8a1cab3efdab745dc2b17f8cd87b7470..7ea1c917764fb2588fe1aadc75c49ba300f8cb2f:/src/generic/dirctrlg.cpp diff --git a/src/generic/dirctrlg.cpp b/src/generic/dirctrlg.cpp index 43d34ec943..b631aa69cd 100644 --- a/src/generic/dirctrlg.cpp +++ b/src/generic/dirctrlg.cpp @@ -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; }