| Index: base/base_drop_target.cc
|
| ===================================================================
|
| --- base/base_drop_target.cc (revision 10310)
|
| +++ base/base_drop_target.cc (working copy)
|
| @@ -11,6 +11,7 @@
|
| ///////////////////////////////////////////////////////////////////////////////
|
|
|
| IDropTargetHelper* BaseDropTarget::cached_drop_target_helper_ = NULL;
|
| +int32 BaseDropTarget::drag_identity_ = 0;
|
|
|
| BaseDropTarget::BaseDropTarget(HWND hwnd)
|
| : hwnd_(hwnd),
|
| @@ -53,6 +54,11 @@
|
| *effect = DROPEFFECT_NONE;
|
| return S_OK;
|
| }
|
| +
|
| + // Update the drag identity, skipping 0.
|
| + if (++drag_identity_ == 0)
|
| + ++drag_identity_;
|
| +
|
| current_data_object_ = data_object;
|
| POINT screen_pt = { cursor_position.x, cursor_position.y };
|
| *effect = OnDragEnter(current_data_object_, key_state, screen_pt, *effect);
|
|
|