Bug 693263 - Support CF_HDROP format for drag and dropped files. r=neil.

This commit is contained in:
Brian R. Bondy 2012-07-08 17:12:42 -04:00
parent 618bbc4d80
commit b522020496

View File

@ -367,6 +367,9 @@ nsDragService::GetNumDropItems(PRUint32 * aNumItems)
*aNumItems = ::DragQueryFileW(hdrop, 0xFFFFFFFF, NULL, 0);
::GlobalUnlock(stm.hGlobal);
::ReleaseStgMedium(&stm);
// Data may be provided later, so assume we have 1 item
if (*aNumItems == 0)
*aNumItems = 1;
}
else
*aNumItems = 1;