Changeset 9095 for trunk/src/kernel32/Fileio.cpp
- Timestamp:
- Aug 22, 2002, 4:21:27 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/Fileio.cpp
r9011 r9095 1 /* $Id: Fileio.cpp,v 1.6 7 2002-08-16 09:56:30sandervl Exp $ */1 /* $Id: Fileio.cpp,v 1.68 2002-08-22 14:21:26 sandervl Exp $ */ 2 2 3 3 /* … … 293 293 else 294 294 filename = (char *)lpFileName; 295 295 296 296 return (HANDLE)OSLibDosFindFirst(filename, (WIN32_FIND_DATAA *)lpFindFileData); 297 297 … … 390 390 DWORD * count) 391 391 { 392 dprintf(("FindFirstFileMultiA %s %x %x", lpFileName, lpFindFileData, count)); 392 393 return (HANDLE)OSLibDosFindFirstMulti(lpFileName,lpFindFileData,count); 393 394 } … … 404 405 DWORD *count) 405 406 { 406 return OSLibDosFindNextMulti(hFindFile,lpFindFileData,count); 407 dprintf(("FindNextFileMultiA %x %x %x", hFindFile, lpFindFileData, count)); 408 return OSLibDosFindNextMulti(hFindFile,lpFindFileData,count); 407 409 } 408 410 //****************************************************************************** … … 810 812 DWORD rc, error; 811 813 812 if((NULL!=lpszFileName) && strlen(lpszFileName)==2 && lpszFileName[1] == ':') 813 { 814 char szDrive[4]; 815 szDrive[0] = lpszFileName[0]; 816 szDrive[1] = lpszFileName[1]; 817 szDrive[2] = '\\'; 818 szDrive[3] = 0x00; 819 rc = O32_GetFileAttributes((LPSTR)szDrive); 820 } 821 else { 822 rc = O32_GetFileAttributes((LPSTR)lpszFileName); 823 if(rc == -1 && lpszFileName[strlen(lpszFileName)-1] != '\\') { 824 char *filename = (char *)alloca(strlen(lpszFileName)+2); //+2!!!!!! 825 strcpy(filename, lpszFileName); 826 strcat(filename, "\\"); 827 rc = O32_GetFileAttributes((LPSTR)filename); 828 } 829 } 814 rc = OSLibGetFileAttributes((LPSTR)lpszFileName); 815 830 816 //SvL: Open32 returns FILE_ATTRIBUTE_DIRECTORY|FILE_ATTRIBUTE_NORMAL for 831 817 // directories whereas NT 4 (SP6) only returns FILE_ATTRIBUTE_DIRECTORY
Note:
See TracChangeset
for help on using the changeset viewer.