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

    r675 r687  
    12411241      cdi.pDragInfo = mp1;
    12421242      li = DoFileDrop(hwnd, NULL, FALSE, mp1, MPFROMP(&cdi));
    1243       dcd = INSTDATA(cdi.pDragInfo->hwndSource);
    1244       if (dcd->ulItemsToUnHilite) {
    1245         saymsg(MB_OK | MB_INFORMATION,
    1246                hwnd,
    1247                GetPString(IDS_ERRORTEXT),
    1248                GetPString(IDS_EXCEEDPMDRGLMT));
    1249       }
     1243      CheckPmDrgLimit(cdi.pDragInfo);
    12501244      if (li) {
    12511245        li->type = id;
     
    18161810      li = DoFileDrop(hwnd,
    18171811                      NULL,
    1818                       TRUE, MPFROM2SHORT(TREE_CNR, CN_DROP), MPFROMP(&cnd));
    1819       dcd = INSTDATA(cnd.pDragInfo->hwndSource);
    1820       if (dcd && dcd->ulItemsToUnHilite) {
    1821         saymsg(MB_OK | MB_INFORMATION,
    1822                hwnd,
    1823                GetPString(IDS_ERRORTEXT),
    1824                GetPString(IDS_EXCEEDPMDRGLMT));
    1825       }
     1812                      TRUE, MPFROM2SHORT(TREE_CNR, CN_DROP), MPFROMP(&cnd));
     1813      CheckPmDrgLimit(cnd.pDragInfo);
    18261814      if (li) {
    18271815        strcpy(li->targetpath, szDrv);
Note: See TracChangeset for help on using the changeset viewer.