Changeset 47916 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Aug 20, 2013 2:01:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r47915 r47916 7593 7593 mUserData.backup(); 7594 7594 com::SafeArray<BYTE> icon(ComSafeArrayInArg(aIcon)); 7595 mUserData->mIcon. clear();7595 mUserData->mIcon.resize(icon.size()); 7596 7596 memcpy(&mUserData->mIcon[0], icon.raw(), mUserData->mIcon.size()); 7597 7597 } … … 8931 8931 { 8932 8932 // copy name, description, OS type, teleporter, UTC etc. 8933 mUserData->s = config.machineUserData; 8934 8935 // Decode the Icon overide data from config userdata and set onto Machine. 8933 8936 #define DECODE_STR_MAX _1M 8934 mUserData->s = config.machineUserData;8935 8936 // Decode the Icon overide data from config userdata and set onto Machine.8937 8937 const char* pszStr = config.machineUserData.ovIcon.c_str(); 8938 8938 ssize_t cbOut = RTBase64DecodedSize(pszStr, NULL); … … 8949 8949 pszStr, 8950 8950 rc); 8951 COMSETTER(Icon)(ComSafeArrayAsInParam(iconByte)); 8951 mUserData->mIcon.resize(iconByte.size()); 8952 memcpy(&mUserData->mIcon[0], iconByte.raw(), mUserData->mIcon.size()); 8952 8953 8953 8954 // look up the object by Id to check it is valid
Note:
See TracChangeset
for help on using the changeset viewer.