Changeset 687 for trunk/dll/dircnrs.c


Ignore:
Timestamp:
Jun 10, 2007, 10:41:52 PM (18 years ago)
Author:
Gregg Young
Message:

Add CheckPmDrgLimit function to fix crash when dragging to FM/2 for other apps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/dircnrs.c

    r675 r687  
    592592      li =
    593593        DoFileDrop(dcd->hwndCnr, dcd->directory, FALSE, MPVOID,
    594                    MPFROMP(&cni));
    595       dcdsrc = INSTDATA(cni.pDragInfo->hwndSource);
    596       if (dcdsrc->ulItemsToUnHilite) {
    597         saymsg(MB_OK | MB_INFORMATION,
    598                hwnd,
    599                GetPString(IDS_ERRORTEXT),
    600                GetPString(IDS_EXCEEDPMDRGLMT));
    601       }
     594                   MPFROMP(&cni));
     595      CheckPmDrgLimit(cni.pDragInfo);
    602596      if (li) {
    603597        li->type = (fDefaultDeletePerm) ? IDM_PERMDELETE : IDM_DELETE;
     
    27432737              return (MRFROM2SHORT(DOR_NEVERDROP, 0));
    27442738          }
    2745           if (*dcd->directory &&
    2746               (driveflags[toupper(*dcd->directory) - 'A'] &
    2747                DRIVE_NOTWRITEABLE)) {
     2739          if (*dcd->directory &&
     2740             (driveflags[toupper(*dcd->directory) - 'A'] &
     2741              DRIVE_NOTWRITEABLE)) {
    27482742            DrgFreeDraginfo(pDInfo);
    27492743            return MRFROM2SHORT(DOR_DROP,       /* Return okay to link */
     
    28592853
    28602854          DbgMsg(pszSrcFile, __LINE__, "calling DoFileDrop");
    2861           li = DoFileDrop(hwnd, dcd->directory, TRUE, mp1, mp2);
    2862           dcdsrc = INSTDATA(((PCNRDRAGINFO)mp2)->pDragInfo->hwndSource);
    2863 
    2864           if (dcdsrc->ulItemsToUnHilite) {
    2865             saymsg(MB_OK | MB_INFORMATION,
    2866                    hwnd,
    2867                    GetPString(IDS_ERRORTEXT),
    2868                    GetPString(IDS_EXCEEDPMDRGLMT));
    2869           }
    2870 
     2855          li = DoFileDrop(hwnd, dcd->directory, TRUE, mp1, mp2);
     2856          CheckPmDrgLimit(((PCNRDRAGINFO)mp2)->pDragInfo);
    28712857          if (li) {
    28722858            if (li->list && li->list[0] && IsRoot(li->list[0]))
Note: See TracChangeset for help on using the changeset viewer.