VirtualBox

Changeset 104644 in vbox


Ignore:
Timestamp:
May 15, 2024 6:06:33 PM (7 months ago)
Author:
vboxsync
Message:

Additions/common/VBoxService/VBoxServiceVMInfo.cpp: Don't call RTStrToUInt32() multiple times in RT_CLAMP(), bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp

    r103149 r104644  
    313313        {
    314314            AssertPtr(pszValue);
    315             g_uVMInfoUserIdleThresholdMS = RT_CLAMP(RTStrToUInt32(pszValue), 1000, UINT32_MAX - 1);
     315            g_uVMInfoUserIdleThresholdMS = RTStrToUInt32(pszValue);
     316            g_uVMInfoUserIdleThresholdMS = RT_CLAMP(g_uVMInfoUserIdleThresholdMS, 1000, UINT32_MAX - 1);
    316317            RTStrFree(pszValue);
    317318        }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette