- Timestamp:
- Jul 2, 2014 8:23:58 AM (11 years ago)
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestDnDSourceImpl.cpp
r51620 r51799 333 333 334 334 aData.resize(cbURIs + 1 /* Include termination */); 335 memcpy( (void *)aData.front(), strURIs.c_str(), cbURIs);335 memcpy(&aData.front(), strURIs.c_str(), cbURIs); 336 336 } 337 337 else … … 342 342 /* Copy the data into a safe array of bytes. */ 343 343 aData.resize(cbData); 344 memcpy( (void *)aData.front(), pvData, cbData);344 memcpy(&aData.front(), pvData, cbData); 345 345 } 346 346 } -
trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp
r51620 r51799 417 417 paParms[i++].setPointer((void *)aFormat.c_str(), (uint32_t)aFormat.length() + 1); 418 418 paParms[i++].setUInt32((uint32_t)aFormat.length() + 1); 419 paParms[i++].setPointer((void *)aData.front(), (uint32_t)aData.size());419 paParms[i++].setPointer((void*)&aData.front(), (uint32_t)aData.size()); 420 420 paParms[i++].setUInt32((uint32_t)aData.size()); 421 421
Note:
See TracChangeset
for help on using the changeset viewer.