Changeset 687 for trunk/dll/collect.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/collect.c

    r675 r687  
    462462      cni.pDragInfo = (PDRAGINFO) mp1;
    463463      li = DoFileDrop(dcd->hwndCnr, NULL, FALSE, MPVOID, MPFROMP(&cni));
    464       dcdsrc = INSTDATA(cni.pDragInfo->hwndSource);
    465       if (dcdsrc->ulItemsToUnHilite) {
    466         saymsg(MB_OK | MB_INFORMATION,
    467                hwnd,
    468                GetPString(IDS_ERRORTEXT),
    469                GetPString(IDS_EXCEEDPMDRGLMT));
    470       }
     464      CheckPmDrgLimit(cni.pDragInfo);
    471465      if (li) {
    472466        li->type = fDefaultDeletePerm ? IDM_PERMDELETE : IDM_DELETE;
     
    22632257          ULONG action = UM_ACTION;
    22642258
    2265           li = DoFileDrop(hwnd, NULL, TRUE, mp1, mp2);
    2266           dcdsrc = INSTDATA(((PCNRDRAGINFO)mp2)->pDragInfo->hwndSource);
    2267           if (dcdsrc->ulItemsToUnHilite) {
    2268             saymsg(MB_OK | MB_INFORMATION,
    2269                    hwnd,
    2270                    GetPString(IDS_ERRORTEXT),
    2271                    GetPString(IDS_EXCEEDPMDRGLMT));
    2272           }
     2259          li = DoFileDrop(hwnd, NULL, TRUE, mp1, mp2);
     2260          CheckPmDrgLimit(((PCNRDRAGINFO)mp2)->pDragInfo);
    22732261          if (li) {
    22742262            if (!*li->targetpath) {
Note: See TracChangeset for help on using the changeset viewer.