VirtualBox

Changeset 95866 in vbox


Ignore:
Timestamp:
Jul 27, 2022 1:19:58 AM (2 years ago)
Author:
vboxsync
Message:

VBoxTray/VBoxHostVersion.cpp: _snprintf -> RTStrPrintf; duh! bugref:10261

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxHostVersion.cpp

    r93115 r95866  
    4343        char *pszHostVersion;
    4444        char *pszGuestVersion;
    45         bool bUpdate;
    46         rc = VbglR3HostVersionCheckForUpdate(uGuestPropSvcClientID, &bUpdate, &pszHostVersion, &pszGuestVersion);
     45        bool fUpdate;
     46        rc = VbglR3HostVersionCheckForUpdate(uGuestPropSvcClientID, &fUpdate, &pszHostVersion, &pszGuestVersion);
    4747        if (RT_SUCCESS(rc))
    4848        {
    49             if (bUpdate)
     49            if (fUpdate)
    5050            {
    5151                char szMsg[256]; /* Sizes according to MSDN. */
     
    5353
    5454                /** @todo Add some translation macros here. */
    55                 _snprintf(szTitle, sizeof(szTitle), "VirtualBox Guest Additions update available!");
    56                 _snprintf(szMsg, sizeof(szMsg), "Your guest is currently running the Guest Additions version %s. "
    57                                                 "We recommend updating to the latest version (%s) by choosing the "
    58                                                 "install option from the Devices menu.", pszGuestVersion, pszHostVersion);
     55                RTStrPrintf(szTitle, sizeof(szTitle), "VirtualBox Guest Additions update available!");
     56                RTStrPrintf(szMsg, sizeof(szMsg),
     57                            "Your guest is currently running the Guest Additions version %s. "
     58                            "We recommend updating to the latest version (%s) by choosing the "
     59                            "install option from the Devices menu.", pszGuestVersion, pszHostVersion);
    5960
    6061                rc = hlpShowBalloonTip(g_hInstance, g_hwndToolWindow, ID_TRAYICON,
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