Changeset 50179 in vbox for trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.cpp
- Timestamp:
- Jan 23, 2014 12:14:27 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.cpp
r50177 r50179 191 191 } 192 192 193 if (RT_SUCCESS(rc)) 194 { 195 OleInitialize(NULL); 196 197 pThis->RegisterAsDropTarget(); 198 193 HRESULT hr = OleInitialize(NULL); 194 if (SUCCEEDED(hr)) 195 { 196 #ifdef VBOX_WITH_DRAG_AND_DROP_GH 197 rc = pThis->RegisterAsDropTarget(); 198 #endif 199 } 200 else 201 { 202 LogRelFunc(("Unable to initialize OLE, hr=%Rhrc\n", hr)); 203 rc = VERR_COM_UNEXPECTED; 204 } 205 206 if (RT_SUCCESS(rc)) 207 { 199 208 bool fShutdown = false; 200 201 209 do 202 210 { … … 864 872 { 865 873 rc = makeFullscreen(); 866 /*if (RT_SUCCESS(rc))867 rc = RegisterAsDropTarget();*/868 869 874 if (RT_SUCCESS(rc)) 870 875 { … … 961 966 uDefAction = DND_COPY_ACTION; 962 967 uAllActions = uDefAction; 968 969 /** @todo There can be more than one format, separated 970 * with \r\n. */ 963 971 strFormat = "text/plain;charset=utf-8"; 964 972 }
Note:
See TracChangeset
for help on using the changeset viewer.