Ignore:
Timestamp:
Dec 17, 2001, 5:23:19 PM (24 years ago)
Author:
sandervl
Message:

GetVolumeInformation changes: jfs -> ntfs, everthing except udf & cdfs as fat16

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/disk.cpp

    r6679 r7645  
    1 /* $Id: disk.cpp,v 1.25 2001-09-07 10:51:38 phaller Exp $ */
     1/* $Id: disk.cpp,v 1.26 2001-12-17 16:23:19 sandervl Exp $ */
    22
    33/*
     
    310310        }
    311311        rc = OSLibDosQueryVolumeFS(drive, lpFileSystemNameBuffer, nFileSystemNameSize);
    312         if(lpFileSystemNameBuffer) {
     312        if(lpFileSystemNameBuffer)
     313        {
    313314            dprintf2(("File system name: %s", lpFileSystemNameBuffer));
     315            if(!strcmp(lpFileSystemNameBuffer, "JFS"))
     316            {
     317                strcpy(lpFileSystemNameBuffer, "NTFS");
     318            }
     319            else
     320            if(!strcmp(lpFileSystemNameBuffer, "CDFS") ||
     321               !strcmp(lpFileSystemNameBuffer, "UDF"))
     322            {
     323                //do nothing
     324            }
     325            else
     326            {//pretend everything else is FAT16 (HPFS and FAT have the same file size limit)
     327                strcpy(lpFileSystemNameBuffer, "FAT16");
     328            }
     329            dprintf2(("Final file system name: %s", lpFileSystemNameBuffer));
    314330        }
    315331    }
    316332    if(lpMaximumComponentLength) {
    317         if(!strcmp(lpFileSystemNameBuffer, "FAT")) {
     333        if(!strcmp(lpFileSystemNameBuffer, "FAT16")) {
    318334            *lpMaximumComponentLength = 12;
    319335        }
     
    322338    if(lpFileSystemFlags)
    323339    {
    324         if(strcmp(lpFileSystemNameBuffer, "FAT")) {
     340        if(strcmp(lpFileSystemNameBuffer, "FAT16")) {
    325341            *lpFileSystemFlags = FS_CASE_IS_PRESERVED;
    326342        }
     
    407423//******************************************************************************
    408424//******************************************************************************
    409 UINT WIN32API GetLogicalDriveStringsA(UINT arg1, LPSTR  arg2)
    410 {
    411     dprintf(("KERNEL32:  OS2GetLogicalDriveStringsA\n"));
    412     return O32_GetLogicalDriveStrings(arg1, arg2);
     425UINT WIN32API GetLogicalDriveStringsA(UINT cchBuffer, LPSTR lpszBuffer)
     426{
     427    dprintf(("KERNEL32: GetLogicalDriveStringsA", cchBuffer, lpszBuffer));
     428    return O32_GetLogicalDriveStrings(cchBuffer, lpszBuffer);
    413429}
    414430//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.