Changeset 5878 for trunk/src


Ignore:
Timestamp:
Jun 2, 2001, 1:29:31 PM (24 years ago)
Author:
achimha
Message:

correct open action in OFN_NOVALIDATE mode, fixes FrameMaker 5.5 missing graphics file dialog

File:
1 edited

Legend:

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

    r5583 r5878  
    13881388  nOpenAction = ONOPEN_BROWSE;
    13891389
     1390  /* @@@AH 2001-06-02 moved out of !OFN_NONVALIDATE block - needs to be set */
     1391  if (FAILED (SHGetDesktopFolder(&lpsf))) return FALSE;
     1392
    13901393  /* dont apply any checks with OFN_NOVALIDATE */
    13911394  if(!(fodInfos->ofnInfos->Flags & OFN_NOVALIDATE))
     
    14021405    }
    14031406
    1404     if (FAILED (SHGetDesktopFolder(&lpsf))) return FALSE;
    1405  
    14061407    lpszTemp1 = lpszTemp = lpstrPathAndFile;
    14071408    while (lpszTemp1)
     
    14901491    }
    14911492    if(pidl) COMDLG32_SHFree(pidl);
     1493  }
     1494  else
     1495  {
     1496    // @@@AH 2001-06-02 when we are in OFN_NOVALIDATE mode, the action
     1497    // must be to open the specified file when pressing open button
     1498    TRACE("OFN_NOVALIDATE mode, set open action to ONOPEN_OPEN\n");
     1499    nOpenAction = ONOPEN_OPEN;
    14921500  }
    14931501
Note: See TracChangeset for help on using the changeset viewer.