Changeset 8555 for trunk/src


Ignore:
Timestamp:
Jun 3, 2002, 9:25:41 AM (23 years ago)
Author:
sandervl
Message:

Drag and drop fixes

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ole32/ole2.c

    r8553 r8555  
    402402  if (dropTargetInfo==NULL)
    403403    return DRAGDROP_E_NOTREGISTERED;
     404
     405#ifdef __WIN32OS2__
     406  //just in case dragleave wasn't called...
     407  if(dropTargetInfo->hDrop) {
     408      GlobalFree(dropTargetInfo->hDrop);
     409  }
     410  if(dropTargetInfo->pDataObject) {
     411      IDataObject_Release(dropTargetInfo->pDataObject);
     412  }
     413#endif
    404414
    405415  /*
  • trunk/src/user32/pmwindow.cpp

    r8553 r8555  
    1 /* $Id: pmwindow.cpp,v 1.176 2002-06-02 19:34:28 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.177 2002-06-03 07:25:13 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    862862            POINT point = {sxDrop, syDrop};
    863863            if(DragDropFiles(win32wnd->getWindowHandle(), point, cItems, pszFiles, ulBytes) == FALSE) {
    864                     rc = (MRFROM2SHORT (DOR_NEVERDROP, 0));
    865             }
    866             else    rc = (MRFROM2SHORT(DOR_DROP, DO_MOVE));
     864                rc = (MRFROM2SHORT (DOR_NEVERDROP, 0));
     865            }
     866            else {
     867                rc = (MRFROM2SHORT(DOR_DROP, DO_MOVE));
     868                win32wnd->setDragDropActive(FALSE);
     869            }
    867870            free(pszFiles);
    868871        }
Note: See TracChangeset for help on using the changeset viewer.