Changeset 19342


Ignore:
Timestamp:
Jun 27, 2002, 9:50:32 AM (23 years ago)
Author:
sandervl
Message:

Only switch directory when the path returned by SHGetPathFromIDListA is valid. (COMDLG32_UpdateCurrentDir)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified tags/trunk/src/comdlg32/filedlgbrowser.c

    r17269 r19342  
    8383{
    8484    char lpstrPath[MAX_PATH];
     85#ifdef __WIN32OS2__
     86    if(SHGetPathFromIDListA(fodInfos->ShellInfos.pidlAbsCurrent,lpstrPath) == TRUE) {
     87        SetCurrentDirectoryA(lpstrPath);
     88        TRACE("new current folder %s\n", lpstrPath);
     89    }
     90#else
    8591    SHGetPathFromIDListA(fodInfos->ShellInfos.pidlAbsCurrent,lpstrPath);
    8692    SetCurrentDirectoryA(lpstrPath);
    8793    TRACE("new current folder %s\n", lpstrPath);
     94#endif
    8895}
    8996
Note: See TracChangeset for help on using the changeset viewer.