VirtualBox

Ignore:
Timestamp:
Apr 19, 2020 1:18:53 AM (5 years ago)
Author:
vboxsync
Message:

VBoxTray: VC++ 14.1 warnings. bugref:8489

Location:
trunk/src/VBox/Additions/WINNT/VBoxTray
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/Makefile.kmk

    r82968 r83823  
    2626endif
    2727VBoxTray_SDKS     = ReorderCompilerIncs $(VBOX_WINDDK_GST)
    28 VBoxTray_DEFS     = \
    29         VBOX_WITH_HGCM \
    30         VBOX_BUILD_TARGET=\"$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)\"
     28ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
     29 VBoxTray_DEFS   := VBOX_WITH_HGCM VBOX_BUILD_TARGET="$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)"
     30else
     31 VBoxTray_DEFS   := VBOX_WITH_HGCM VBOX_BUILD_TARGET=\"$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)\"
     32endif
    3133VBoxTray_INCS     = \
    3234        ../include \
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp

    r83624 r83823  
    257257                     * Report available formats to the host. */
    258258                    SHCLFORMATS fFormats;
    259                     int rc = SharedClipboardWinGetFormats(pWinCtx, &fFormats);
     259                    rc = SharedClipboardWinGetFormats(pWinCtx, &fFormats);
    260260                    if (RT_SUCCESS(rc))
    261261                    {
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.cpp

    r82968 r83823  
    124124 * @param   pCtx    Pointer to context to use.
    125125 */
    126 int VBoxDnDWnd::Initialize(PVBOXDNDCONTEXT pCtx)
    127 {
    128     AssertPtrReturn(pCtx, VERR_INVALID_POINTER);
     126int VBoxDnDWnd::Initialize(PVBOXDNDCONTEXT a_pCtx)
     127{
     128    AssertPtrReturn(a_pCtx, VERR_INVALID_POINTER);
    129129
    130130    /* Save the context. */
    131     this->pCtx = pCtx;
     131    this->pCtx = a_pCtx;
    132132
    133133    int rc = RTSemEventCreate(&mEventSem);
     
    146146            AssertRC(rc2);
    147147
    148             if (!pCtx->fStarted) /* Did the thread fail to start? */
     148            if (!a_pCtx->fStarted) /* Did the thread fail to start? */
    149149                rc = VERR_NOT_SUPPORTED; /* Report back DnD as not being supported. */
    150150        }
     
    394394 * The proxy window's WndProc.
    395395 */
    396 LRESULT CALLBACK VBoxDnDWnd::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
    397 {
    398     switch (uMsg)
     396LRESULT CALLBACK VBoxDnDWnd::WndProc(HWND a_hWnd, UINT a_uMsg, WPARAM a_wParam, LPARAM a_lParam)
     397{
     398    switch (a_uMsg)
    399399    {
    400400        case WM_CREATE:
     
    543543        case WM_VBOXTRAY_DND_MESSAGE:
    544544        {
    545             PVBOXDNDEVENT pEvent = (PVBOXDNDEVENT)lParam;
     545            PVBOXDNDEVENT pEvent = (PVBOXDNDEVENT)a_lParam;
    546546            if (!pEvent)
    547547                break; /* No event received, bail out. */
     
    665665    }
    666666
    667     return DefWindowProc(hWnd, uMsg, wParam, lParam);
     667    return DefWindowProc(a_hWnd, a_uMsg, a_wParam, a_lParam);
    668668}
    669669
     
    802802 *
    803803 * @return  IPRT status code.
    804  * @param   lstFormats              Supported formats offered by the host.
    805  * @param   dndLstActionsAllowed    Supported actions offered by the host.
    806  */
    807 int VBoxDnDWnd::OnHgEnter(const RTCList<RTCString> &lstFormats, VBOXDNDACTIONLIST dndLstActionsAllowed)
     804 * @param   a_lstFormats            Supported formats offered by the host.
     805 * @param   a_fDndLstActionsAllowed Supported actions offered by the host.
     806 */
     807int VBoxDnDWnd::OnHgEnter(const RTCList<RTCString> &a_lstFormats, VBOXDNDACTIONLIST a_fDndLstActionsAllowed)
    808808{
    809809    if (mMode == GH) /* Wrong mode? Bail out. */
     
    811811
    812812#ifdef DEBUG
    813     LogFlowThisFunc(("dndActionList=0x%x, lstFormats=%zu: ", dndLstActionsAllowed, lstFormats.size()));
    814     for (size_t i = 0; i < lstFormats.size(); i++)
    815         LogFlow(("'%s' ", lstFormats.at(i).c_str()));
     813    LogFlowThisFunc(("dndActionList=0x%x, a_lstFormats=%zu: ", a_fDndLstActionsAllowed, a_lstFormats.size()));
     814    for (size_t i = 0; i < a_lstFormats.size(); i++)
     815        LogFlow(("'%s' ", a_lstFormats.at(i).c_str()));
    816816    LogFlow(("\n"));
    817817#endif
     
    828828    {
    829829        /* Save all allowed actions. */
    830         this->dndLstActionsAllowed = dndLstActionsAllowed;
     830        this->dndLstActionsAllowed = a_fDndLstActionsAllowed;
    831831
    832832        /*
     
    843843
    844844        LogRel2(("DnD: Reported formats:\n"));
    845         for (size_t i = 0; i < lstFormats.size(); i++)
     845        for (size_t i = 0; i < a_lstFormats.size(); i++)
    846846        {
    847847            bool fSupported = false;
    848848            for (size_t a = 0; a < this->lstFmtSup.size(); a++)
    849849            {
    850                 const char *pszFormat = lstFormats.at(i).c_str();
     850                const char *pszFormat = a_lstFormats.at(i).c_str();
    851851                LogFlowThisFunc(("\t\"%s\" <=> \"%s\"\n", this->lstFmtSup.at(a).c_str(), pszFormat));
    852852
     
    854854                if (fSupported)
    855855                {
    856                     this->lstFmtActive.append(lstFormats.at(i));
     856                    this->lstFmtActive.append(a_lstFormats.at(i));
    857857
    858858                    /** @todo Put this into a \#define / struct. */
     
    891891            }
    892892
    893             LogRel2(("DnD: \t%s: %RTbool\n", lstFormats.at(i).c_str(), fSupported));
     893            LogRel2(("DnD: \t%s: %RTbool\n", a_lstFormats.at(i).c_str(), fSupported));
    894894        }
    895895
     
    913913        /* Translate our drop actions into allowed Windows drop effects. */
    914914        startupInfo.dwOKEffects = DROPEFFECT_NONE;
    915         if (dndLstActionsAllowed)
    916         {
    917             if (dndLstActionsAllowed & VBOX_DND_ACTION_COPY)
     915        if (a_fDndLstActionsAllowed)
     916        {
     917            if (a_fDndLstActionsAllowed & VBOX_DND_ACTION_COPY)
    918918                startupInfo.dwOKEffects |= DROPEFFECT_COPY;
    919             if (dndLstActionsAllowed & VBOX_DND_ACTION_MOVE)
     919            if (a_fDndLstActionsAllowed & VBOX_DND_ACTION_MOVE)
    920920                startupInfo.dwOKEffects |= DROPEFFECT_MOVE;
    921             if (dndLstActionsAllowed & VBOX_DND_ACTION_LINK)
     921            if (a_fDndLstActionsAllowed & VBOX_DND_ACTION_LINK)
    922922                startupInfo.dwOKEffects |= DROPEFFECT_LINK;
    923923        }
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp

    r83072 r83823  
    11641164                                    fTrack |= TPM_RETURNCMD | TPM_NONOTIFY;
    11651165
    1166                                 UINT uMsg = TrackPopupMenu(hContextMenu, fTrack, lpCursor.x, lpCursor.y, 0, hWnd, NULL);
     1166                                uMsg = TrackPopupMenu(hContextMenu, fTrack, lpCursor.x, lpCursor.y, 0, hWnd, NULL);
    11671167                                if (   uMsg
    11681168                                    && fBlockWhileTracking)
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