Changeset 629


Ignore:
Timestamp:
Apr 22, 2007, 7:00:08 AM (19 years ago)
Author:
Steven Levine
Message:

Add debug code to track down reason for PMERR_SOURCE_SAME_AS_TARGET

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/droplist.c

    r618 r629  
    1717  19 Apr 07 SHL Use FreeDragInfoData
    1818  19 Apr 07 SHL Add more drag/drop error checking
     19  21 Apr 07 SHL Add debug code to track down reason for PMERR_SOURCE_SAME_AS_TARGET
    1920
    2021***********************************************************************/
     
    268269  pci = (PCNRITEM) ((PCNRDRAGINFO) mp2)->pRecord;
    269270  pDInfo = ((PCNRDRAGINFO) mp2)->pDragInfo;
    270   if (!pDInfo)
     271  if (!pDInfo) {
     272    Runtime_Error(pszSrcFile, __LINE__, "No drag info");
    271273    return NULL;
     274  }
    272275  if (!DrgAccessDraginfo(pDInfo)) {
    273276    Win_Error(HWND_DESKTOP, HWND_DESKTOP, pszSrcFile, __LINE__,
     
    424427                         MPFROMLONG(pDItem->ulItemID),
    425428                         MPFROMLONG(DMFL_TARGETFAIL));
    426   } // for
     429  } // for curitem
    427430
    428431  if (files && numfiles && files[0] && cbFile && ulitemID) {
     
    463466  }
    464467
     468  // fixme to know why PM thinks drop not done
     469  // this will avoid DrgFreeDraginfo complaints from FreeDragInfoData
     470  DbgMsg(pszSrcFile, __LINE__, "calling FreeDragInfoData");
    465471  FreeDragInfoData(hwndCnr, pDInfo);
    466472
Note: See TracChangeset for help on using the changeset viewer.