Changeset 69990 in vbox for trunk/src/VBox/Additions/common/VBoxService/VBoxServiceTimeSync.cpp
- Timestamp:
- Dec 7, 2017 4:38:41 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceTimeSync.cpp
r69987 r69990 219 219 || rc == VERR_NOT_FOUND) 220 220 { 221 uint32_t value;221 uint32_t uValue; 222 222 rc = VGSvcReadPropUInt32(uGuestPropSvcClientID, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-on-restore", 223 & value, 1, 1);223 &uValue, 0 /*uMin*/, 1 /*uMax*/); 224 224 if (RT_SUCCESS(rc)) 225 g_fTimeSyncSetOnRestore = !!value;225 g_fTimeSyncSetOnRestore = uValue != 0; 226 226 } 227 227 if ( RT_SUCCESS(rc) 228 228 || rc == VERR_NOT_FOUND) 229 229 { 230 uint32_t value;230 uint32_t uValue; 231 231 rc = VGSvcReadPropUInt32(uGuestPropSvcClientID, "/VirtualBox/GuestAdd/VBoxService/--timesync-verbosity", 232 & value, 0, 255);232 &uValue, 0 /*uMin*/, 255 /*uMax*/); 233 233 if (RT_SUCCESS(rc)) 234 g_uTimeSyncVerbosity = (unsigned) value;234 g_uTimeSyncVerbosity = (unsigned)uValue; 235 235 } 236 236 VbglR3GuestPropDisconnect(uGuestPropSvcClientID);
Note:
See TracChangeset
for help on using the changeset viewer.