Changeset 13242 in vbox
- Timestamp:
- Oct 14, 2008 9:51:47 AM (16 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/VBoxService
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxService/VBoxVMInfo.h
r13127 r13242 32 32 fnWTSGetActiveConsoleSessionId pfnWTSGetActiveConsoleSessionId; 33 33 BOOL fFirstRun; 34 uint32_t iUserCount;34 uint32_t cUsers; 35 35 } VBOXINFORMATIONCONTEXT; 36 36 -
trunk/src/VBox/Additions/WINNT/VBoxService/VBoxVMInfoUser.cpp
r13129 r13242 334 334 vboxVMInfoWriteProp(a_pCtx, "GuestInfo/OS/LoggedInUsersList", (iUserCount > 0) ? szUserList : NULL); 335 335 vboxVMInfoWritePropInt(a_pCtx, "GuestInfo/OS/LoggedInUsers", iUserCount); 336 if (a_pCtx-> iUserCount != iUserCount)336 if (a_pCtx->cUsers != iUserCount || a_pCtx->cUsers == INT32_MAX) 337 337 { 338 338 /* Update this property ONLY if there is a real change from no users to 339 339 * users or vice versa. The only exception is that the initialization 340 * of a_pCtx-> iUserCountforces an update, but only once. This ensures340 * of a_pCtx->cUsers forces an update, but only once. This ensures 341 341 * consistent property settings even if the VM aborted previously. */ 342 342 if (iUserCount == 0) 343 343 vboxVMInfoWriteProp(a_pCtx, "GuestInfo/OS/NoLoggedInUsers", "true"); 344 else if (a_pCtx-> iUserCount == 0)344 else if (a_pCtx->cUsers == 0 || a_pCtx->cUsers == INT32_MAX) 345 345 vboxVMInfoWriteProp(a_pCtx, "GuestInfo/OS/NoLoggedInUsers", "false"); 346 346 } 347 a_pCtx-> iUserCount= iUserCount;347 a_pCtx->cUsers = iUserCount; 348 348 349 349 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.