VirtualBox

Ignore:
Timestamp:
Jun 17, 2019 12:51:35 PM (5 years ago)
Author:
vboxsync
Message:

Forward ported r131352 (6.0: Additions/VBoxTray: Don't make VBoxTray fail completely if seamless mode is not available for whatever reason (optional)).

File:
1 edited

Legend:

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

    r78937 r79183  
    7777    if (uNtVersion < RTSYSTEM_MAKE_NT_VERSION(5, 0, 0)) /* Windows NT 4.0 or older */
    7878    {
    79         Log(("VBoxTray: VBoxSeamlessInit: Windows NT 4.0 or older not supported!\n"));
     79        LogRel(("Seamless: Windows NT 4.0 or older not supported!\n"));
    8080        rc = VERR_NOT_SUPPORTED;
    8181    }
     
    8989            *(PFNRT *)&pCtx->pfnVBoxHookRemoveWindowTracker  = RTLdrGetFunction(pCtx->hModHook, "VBoxHookRemoveWindowTracker");
    9090
    91             /* rc should contain success status */
    92             AssertRC(rc); /** @todo r=andy Makes no sense here!? */
    93 
    94             VBoxSeamlessSetSupported(TRUE);
    95 
    96             *ppInstance = pCtx;
     91            if (   pCtx->pfnVBoxHookInstallWindowTracker
     92                && pCtx->pfnVBoxHookRemoveWindowTracker)
     93            {
     94                VBoxSeamlessSetSupported(TRUE);
     95
     96                *ppInstance = pCtx;
     97            }
     98            else
     99            {
     100                LogRel(("Seamless: Not supported, skipping\n"));
     101                rc = VERR_NOT_SUPPORTED;
     102            }
    97103        }
    98104        else
    99105        {
    100             if (rc == VERR_FILE_NOT_FOUND)
    101                 VBoxTrayShowError("VBoxHook.dll not found");
    102 
    103             LogFlowFunc(("Unable to load %s, rc=%Rrc\n", VBOXHOOK_DLL_NAME, rc));
     106            LogRel(("Seamless: Could not load %s (%Rrc), skipping\n", VBOXHOOK_DLL_NAME, rc));
     107            rc = VERR_NOT_SUPPORTED;
    104108        }
    105109    }
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