From 6ca3f79e795c886d594d7256fb43175ab7131522 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Tue, 20 Oct 1998 14:25:50 +0000 Subject: [PATCH] Make sure the access functions are always used to get label and serial number. --- files/drive.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/drive.c b/files/drive.c index 8afe4199991..384d58918ce 100644 --- a/files/drive.c +++ b/files/drive.c @@ -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 */