Changeset 7645 for trunk/src/kernel32/disk.cpp
- Timestamp:
- Dec 17, 2001, 5:23:19 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/disk.cpp
r6679 r7645 1 /* $Id: disk.cpp,v 1.2 5 2001-09-07 10:51:38 phallerExp $ */1 /* $Id: disk.cpp,v 1.26 2001-12-17 16:23:19 sandervl Exp $ */ 2 2 3 3 /* … … 310 310 } 311 311 rc = OSLibDosQueryVolumeFS(drive, lpFileSystemNameBuffer, nFileSystemNameSize); 312 if(lpFileSystemNameBuffer) { 312 if(lpFileSystemNameBuffer) 313 { 313 314 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)); 314 330 } 315 331 } 316 332 if(lpMaximumComponentLength) { 317 if(!strcmp(lpFileSystemNameBuffer, "FAT ")) {333 if(!strcmp(lpFileSystemNameBuffer, "FAT16")) { 318 334 *lpMaximumComponentLength = 12; 319 335 } … … 322 338 if(lpFileSystemFlags) 323 339 { 324 if(strcmp(lpFileSystemNameBuffer, "FAT ")) {340 if(strcmp(lpFileSystemNameBuffer, "FAT16")) { 325 341 *lpFileSystemFlags = FS_CASE_IS_PRESERVED; 326 342 } … … 407 423 //****************************************************************************** 408 424 //****************************************************************************** 409 UINT WIN32API GetLogicalDriveStringsA(UINT arg1, LPSTR arg2)410 { 411 dprintf(("KERNEL32: OS2GetLogicalDriveStringsA\n"));412 return O32_GetLogicalDriveStrings( arg1, arg2);425 UINT WIN32API GetLogicalDriveStringsA(UINT cchBuffer, LPSTR lpszBuffer) 426 { 427 dprintf(("KERNEL32: GetLogicalDriveStringsA", cchBuffer, lpszBuffer)); 428 return O32_GetLogicalDriveStrings(cchBuffer, lpszBuffer); 413 429 } 414 430 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.