- Timestamp:
- Jul 11, 2020 11:05:19 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139219
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/BandwidthGroupImpl.h
r82968 r85242 57 57 const Utf8Str &i_getName() const { return m->bd->mData.strName; } 58 58 BandwidthGroupType_T i_getType() const { return m->bd->mData.enmType; } 59 LONG64 i_getMaxBytesPerSec() const { return m->bd->mData.cMaxBytesPerSec; }59 LONG64 i_getMaxBytesPerSec() const { return (LONG64)m->bd->mData.cMaxBytesPerSec; } 60 60 ULONG i_getReferences() const { return m->bd->cReferences; } 61 61 -
trunk/src/VBox/Main/src-server/BandwidthGroupImpl.cpp
r82968 r85242 81 81 m->bd->mData.enmType = aType; 82 82 m->bd->cReferences = 0; 83 m->bd->mData.cMaxBytesPerSec = aMaxBytesPerSec;83 m->bd->mData.cMaxBytesPerSec = (uint64_t)aMaxBytesPerSec; 84 84 85 85 /* Confirm a successful initialization */ … … 229 229 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 230 230 231 *aMaxBytesPerSec = m->bd->mData.cMaxBytesPerSec;231 *aMaxBytesPerSec = (LONG64)m->bd->mData.cMaxBytesPerSec; 232 232 233 233 return S_OK; … … 243 243 244 244 m->bd.backup(); 245 m->bd->mData.cMaxBytesPerSec = aMaxBytesPerSec;245 m->bd->mData.cMaxBytesPerSec = (uint64_t)aMaxBytesPerSec; 246 246 247 247 /* inform direct session if any. */
Note:
See TracChangeset
for help on using the changeset viewer.