VirtualBox

Changeset 83322 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Mar 19, 2020 9:33:49 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
136515
Message:

Guest Control/Main: Resolved another @todo in GuestSessionTask::setProgressErrorMsg(): Don't use format string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp

    r83251 r83322  
    208208        && !fCompleted)
    209209    {
    210 #if 0 /* Had to quick fix this myself now that the test case triggers it. Please address properly as suggested below. */
    211210        HRESULT hr2 = mProgress->i_notifyComplete(hr,
    212211                                                  COM_IIDOF(IGuestSession),
    213212                                                  GuestSession::getStaticComponentName(),
    214                                                   /** @todo r=bird: i_notifyComplete takes a format string, so this is
    215                                                    *        potentially risky business if a user input mentioned by the message
    216                                                    *        text contains '%s'!  With code below for how to do this less
    217                                                    *        painfully and with fewer string copies. */
    218213                                                  strMsg.c_str());
    219 #else
    220         HRESULT hr2 = mProgress->i_notifyComplete(hr,
    221                                                   COM_IIDOF(IGuestSession),
    222                                                   GuestSession::getStaticComponentName(),
    223                                                   "%s", strMsg.c_str());
    224 #endif
    225214        if (FAILED(hr2))
    226215            return hr2;
Note: See TracChangeset for help on using the changeset viewer.

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