Changeset 7137 for trunk/src


Ignore:
Timestamp:
Oct 19, 2001, 6:14:19 PM (24 years ago)
Author:
phaller
Message:

fix crash in CDN_FILEOK

File:
1 edited

Legend:

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

    r6708 r7137  
    11421142    /* OK button */
    11431143  case IDOK:
     1144#ifndef __WIN32OS2__
    11441145      if(FILEDLG95_OnOpen(hwnd))
    11451146        SendCustomDlgNotificationMessage(hwnd,CDN_FILEOK);
    11461147    break;
     1148#else
     1149    {
     1150      // 20011017 PH
     1151      // some apps require the resources to be still there
     1152      // for the CDN_ processing.
     1153      BOOL fResult = FILEDLG95_OnOpen(hwnd);
     1154      if(fResult)
     1155        SendCustomDlgNotificationMessage(hwnd,CDN_FILEOK);
     1156
     1157      FILEDLG95_Clean(hwnd);
     1158      EndDialog(hwnd, fResult);
     1159      break;
     1160    }
     1161#endif
    11471162    /* Cancel button */
    11481163  case IDCANCEL:
     
    12731288
    12741289  /* clean and exit */
     1290#ifndef __WIN32OS2__
     1291  // 20011017 PH
     1292  // some apps require the resources to be still there
     1293  // for the CDN_ processing.
    12751294  FILEDLG95_Clean(hwnd);
    12761295  return EndDialog(hwnd,TRUE);
     1296#else
     1297  return TRUE;
     1298#endif
    12771299}
    12781300
     
    16211643            }
    16221644          }
    1623 
     1645         
     1646#ifndef __WIN32OS2__
     1647  // 20011017 PH
     1648  // some apps require the resources to be still there
     1649  // for the CDN_ processing.
     1650         
    16241651          TRACE("close\n");
    16251652          FILEDLG95_Clean(hwnd);
    16261653          ret = EndDialog(hwnd, TRUE);
     1654#else
     1655          ret = TRUE;
     1656#endif
    16271657        }
    16281658        else
    16291659        {
    16301660          /* FIXME set error FNERR_BUFFERTOSMALL */
     1661#ifndef __WIN32OS2__
     1662  // 20011017 PH
     1663  // some apps require the resources to be still there
     1664  // for the CDN_ processing.
     1665         
    16311666          FILEDLG95_Clean(hwnd);
    16321667          ret = EndDialog(hwnd, FALSE);
     1668#else
     1669          ret = FALSE;
     1670#endif
    16331671        }
    16341672        goto ret;
Note: See TracChangeset for help on using the changeset viewer.