Changeset 727


Ignore:
Timestamp:
Jul 8, 2007, 5:15:02 AM (18 years ago)
Author:
Steven Levine
Message:

FreeDragInfoData: suppress PMERR_SOURCE_SAME_AS_TARGET notices

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/draglist.c

    r672 r727  
    1919  21 Apr 07 SHL Avoid odd first time drag failure
    2020  12 May 07 SHL Use dcd->ulItemsToUnHilite
     21  05 Jul 07 FreeDragInfoData: suppress PMERR_SOURCE_SAME_AS_TARGET notices
    2122
    2223***********************************************************************/
     
    9899# endif
    99100  if (!DrgFreeDraginfo(pDInfo)) {
    100     if ((WinGetLastError(WinQueryAnchorBlock(hwnd)) & 0xffff) == PMERR_SOURCE_SAME_AS_TARGET) {
    101       // fixme to find caller responsible for PMERR_SOURCE_SAME_AS_TARGET
    102       Win_Error_NoMsgBox(HWND_DESKTOP, HWND_DESKTOP, pszSrcFile, __LINE__,
    103                          "DrgFreeDraginfo failed with PMERR_SOURCE_SAME_AS_TARGET");
    104     }
    105     else
     101    // PMERR_SOURCE_SAME_AS_TARGET is not an error if dragging within same fm/2 process
     102    if (!IsFm2Window(pDInfo->hwndSource, FALSE) ||
     103        (WinGetLastError(WinQueryAnchorBlock(hwnd)) & 0xffff) != PMERR_SOURCE_SAME_AS_TARGET)
     104    {
    106105      Win_Error(hwnd, hwnd, pszSrcFile, __LINE__, "DrgFreeDraginfo");
     106    }
    107107  }
    108108}
Note: See TracChangeset for help on using the changeset viewer.