Changeset 9306 for trunk/src


Ignore:
Timestamp:
Sep 30, 2002, 11:40:37 AM (23 years ago)
Author:
sandervl
Message:

PF: if lpstrInitialDir is not a dir but a filename

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comdlg32/filedlg95.c

    r8612 r9306  
    11121112
    11131113  Q: What about Unicode?
     1114 
    11141115  */
    11151116
     
    11321133    pidlItemId = GetPidlFromName(fodInfos->Shell.FOIShellFolder, path);
    11331134  }
    1134  
     1135#ifdef __WIN32OS2__
     1136  /* @PF Another WINE hole. If lpstrInitialDir is not a dir but a filename
     1137   skip it and use current directory. */
     1138
     1139  else
     1140  {
     1141     DWORD dwAttr = GetFileAttributesA(fodInfos->ofnInfos->lpstrInitialDir);
     1142     if(dwAttr != -1 )
     1143     {
     1144       if (!(dwAttr & FILE_ATTRIBUTE_DIRECTORY))
     1145       {
     1146          char path[MAX_PATH];
     1147
     1148          GetCurrentDirectoryA(MAX_PATH,path);
     1149          COMDLG32_SHFree(pidlItemId);
     1150          pidlItemId = GetPidlFromName(fodInfos->Shell.FOIShellFolder, path);
     1151       }
     1152     }
     1153  }
     1154#endif
    11351155  /* Initialise shell objects */
    11361156  FILEDLG95_SHELL_Init(hwnd);
     
    28862906       
    28872907        TRACE("%p, %p\n", psf, pidl);
    2888        
    2889         ret = IShellFolder_GetAttributesOf( psf, 1, &pidl, &uAttr );
    2890        
     2908
     2909        ret = IShellFolder_GetAttributesOf( psf, 1, &pidl, &uAttr );
     2910
    28912911        TRACE("-- 0x%08lx 0x%08lx\n", uAttr, ret);
    28922912        /* see documentation shell 4.1*/
Note: See TracChangeset for help on using the changeset viewer.