Changeset 288 for Include/Classes/System/IO/DriveInfo.ab
- Timestamp:
- Aug 15, 2007, 3:22:33 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/IO/DriveInfo.ab
r285 r288 41 41 Dim systemName[15] As TCHAR 42 42 If GetVolumeInformation(m_DriveName, NULL, 0, NULL, NULL, NULL, systemName, Len (systemName)) Then 43 Return systemName 43 Dim resultStr = New String( systemName ) 44 Return resultStr 44 45 Else 45 46 'IOException … … 85 86 86 87 Function VolumeLabel() As String 87 Dim volumeName[63] As TCAHR 88 If GetVolumeInformation(m_DriveName, volumeName, 64, NULL, NULL, NULL, NULL, NULL) Then 89 Return volumeName 88 Dim volumeName[63] As TCHAR 89 If GetVolumeInformation(m_DriveName, volumeName, 64, NULL, NULL, NULL, NULL, 0) Then 90 Dim resultStr = New String( volumeName ) 91 Return resultStr 90 92 Else 91 93 'IOException
Note:
See TracChangeset
for help on using the changeset viewer.