mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
Make sure the access functions are always used to get label and serial
number.
This commit is contained in:
parent
b7233c84eb
commit
6ca3f79e79
@ -1024,12 +1024,12 @@ BOOL32 WINAPI GetVolumeInformation32A( LPCSTR root, LPSTR label,
|
||||
if (!DRIVE_IsValid( drive )) return FALSE;
|
||||
if (label)
|
||||
{
|
||||
lstrcpyn32A( label, DOSDrives[drive].label, label_len );
|
||||
lstrcpyn32A( label, DRIVE_GetLabel(drive), label_len );
|
||||
for (cp = label; *cp; cp++);
|
||||
while (cp != label && *(cp-1) == ' ') cp--;
|
||||
*cp = '\0';
|
||||
}
|
||||
if (serial) *serial = DOSDrives[drive].serial;
|
||||
if (serial) *serial = DRIVE_GetSerialNumber(drive);
|
||||
|
||||
/* Set the filesystem information */
|
||||
/* Note: we only emulate a FAT fs at the present */
|
||||
|
Loading…
Reference in New Issue
Block a user