Make sure the access functions are always used to get label and serial

number.
This commit is contained in:
Petter Reinholdtsen 1998-10-20 14:25:50 +00:00 committed by Alexandre Julliard
parent b7233c84eb
commit 6ca3f79e79

View File

@ -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 */