Changeset 13847
- Timestamp:
- Mar 29, 2000, 5:19:36 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tags/trunk/src/comdlg32/filedlg95.c ¶
r13833 r13847 1 /* $Id: filedlg95.c,v 1. 6 2000-03-28 15:26:42cbratschi Exp $*/1 /* $Id: filedlg95.c,v 1.7 2000-03-29 15:19:36 cbratschi Exp $*/ 2 2 /* 3 3 * COMMDLG - File Open Dialogs Win95 look and feel … … 1393 1393 HANDLE hFile; 1394 1394 WIN32_FIND_DATAA stffile; 1395 //CB: FindFirstFileA bug! 1395 1396 1396 /* browse if the user specified a directory */ 1397 hFile = FindFirstFileA(lpstr FileSpec,&stffile);1397 hFile = FindFirstFileA(lpstrPathAndFile,&stffile); 1398 1398 if ( hFile != INVALID_HANDLE_VALUE ) 1399 1399 { … … 1406 1406 // if there is an extention, then get the Pidl otherwise 1407 1407 // we are going to need to add the extention 1408 if(strrchr(lpstrFileSpec,'.'))1409 browsePidl = GetPidlFromName(fodInfos->Shell.FOIShellFolder,1408 if(strrchr(lpstrFileSpec,'.')) 1409 browsePidl = GetPidlFromName(fodInfos->Shell.FOIShellFolder, 1410 1410 lpstrFileSpec); 1411 else1412 browsePidl=NULL;1411 else 1412 browsePidl=NULL; 1413 1413 } 1414 1414 } … … 1643 1643 LPSTR lpstrFindFile; 1644 1644 WIN32_FIND_DATAA fd; 1645 HANDLE hFind; 1645 1646 1646 1647 lpstrFindFile = MemAlloc(strlen(lpstrPathAndFile)+strlen(lpstrExt)); 1647 1648 strcpy(lpstrFindFile, lpstrPathAndFile); 1648 1649 strcat(lpstrFindFile, lpstrExt); 1649 if(FindFirstFileA(lpstrFindFile, &fd) != INVALID_HANDLE_VALUE) 1650 strcat(lpstrPathAndFile,lpstrExt); 1650 hFind = FindFirstFileA(lpstrFindFile,&fd); 1651 if(hFind != INVALID_HANDLE_VALUE) 1652 { 1653 strcat(lpstrPathAndFile,lpstrExt); 1654 FindClose(hFind); 1655 } 1651 1656 MemFree(lpstrFindFile); 1652 1657 } … … 1813 1818 /* Find a Unique directory name */ 1814 1819 hHandle = FindFirstFileA(lpstrNewDir,&FindData); 1815 if(hHandle != INVALID_HANDLE_VALUE)1820 if(hHandle != INVALID_HANDLE_VALUE) 1816 1821 { 1817 1822 int i; … … 1859 1864 MessageBoxA(hwnd,lpstrText, lpstrCaption, MB_OK | MB_ICONEXCLAMATION); 1860 1865 } 1861 } 1866 } else FindClose(hHandle); 1862 1867 return bRes; 1863 1868 }
Note:
See TracChangeset
for help on using the changeset viewer.