VirtualBox

Changeset 60526 in vbox for trunk


Ignore:
Timestamp:
Apr 18, 2016 9:04:31 AM (9 years ago)
Author:
vboxsync
Message:

bugref:8250: fix

Location:
trunk/src/VBox/Additions
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsCommon.nsh

    r53008 r60526  
    574574
    575575  ; Does the guest have a DLL cache?
    576   ${If}   $g_strWinVersion == "Vista"
    577   ${OrIf} $g_strWinVersion == "7"
    578   ${OrIf} $g_strWinVersion == "8"
    579   ${OrIf} $g_strWinVersion == "8_1"
    580   ${OrIf} $g_strWinVersion == "10"
     576  ${If}   $g_strWinVersion == "NT4"
     577  ${OrIf} $g_strWinVersion == "2000"
     578  ${OrIf} $g_strWinVersion == "XP"
    581579    StrCpy $g_bCapDllCache "true"
    582580    ${LogVerbose}  "OS has a DLL cache"
     
    890888  ${EndIf}
    891889
    892   ${If} ${FileExists} "$g_strSystemDir\takeown.exe"
    893     ${CmdExecute} "$\"$g_strSystemDir\takeown.exe$\" /F $\"$0$\"" "true"
    894   ${Else}
    895     ${LogVerbose} "WRP: Warning: takeown.exe not found, skipping"
    896   ${EndIf}
    897 
    898   AccessControl::SetFileOwner "$0" "(S-1-5-32-545)"
    899   Pop $1
    900   ${LogVerbose} "WRP: Setting file owner for $\"$0$\" returned: $1"
    901 
    902   AccessControl::GrantOnFile "$0" "(S-1-5-32-545)" "FullAccess"
    903   Pop $1
    904   ${LogVerbose} "WRP: Setting access rights for $\"$0$\" returned: $1"
    905 
     890  ${Switch} $g_strWinVersion
     891    ${Case} "NT4"
     892    ${Case} "2000"
     893    ${Case} "XP"
     894      ${LogVerbose} "WRP: changing ownership or permissions is not required on NT4, 2000, XP."
     895    ${Break}
     896    ${Default}
     897      ${CmdExecute} "$\"$g_strSystemDir\takeown.exe$\" /A /F $\"$0$\"" "true"
     898      Pop $1
     899      ${LogVerbose} "WRP: Changing ownership for $\"$0$\" returned: $1"
     900   
     901      ${CmdExecute} "icacls.exe $\"$0$\" /grant *S-1-5-32-544:F" "true"
     902      Pop $1
     903      ${LogVerbose} "WRP: Changing DACL for $\"$0$\" returned: $1"
     904   
     905      Sleep 1000 ; TrustedInstaller needs some time to forget about the file
     906  ${EndSwitch}
     907 
    906908!if $%VBOX_WITH_GUEST_INSTALL_HELPER% == "1"
    907909  !ifdef WFP_FILE_EXCEPTION
  • trunk/src/VBox/Additions/WINNT/VBoxTray/Makefile.kmk

    r56301 r60526  
    6868ifdef VBOX_WITH_WDDM
    6969 VBoxTray_DEFS   += VBOX_WITH_WDDM
    70  # VBoxTray_DEFS   += LOG_ENABLED
     70 VBoxTray_DEFS   += LOG_ENABLED
    7171 VBoxTray_SOURCES += ../Graphics/Video/disp/wddm/VBoxDispKmt.cpp
    7272endif
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDispIf.cpp

    r60274 r60526  
    3535#else
    3636#define WARN(_m) do { \
    37             Log(_m); \
     37            LogRel(_m); \
    3838        } while (0)
    3939#define WARN_FUNC(_m) do { \
    40             LogFunc(_m); \
     40            LogRelFunc(_m); \
    4141        } while (0)
    4242#endif
     
    13141314static DWORD vboxDispIfUpdateModesWDDM(VBOXDISPIF_OP *pOp, uint32_t u32TargetId, const RTRECTSIZE *pSize)
    13151315{
     1316        LogRel(("VBoxTray: vboxDispIfUpdateModesWDDM Enter, u32TargetId %d\n", u32TargetId));
    13161317    DWORD winEr = ERROR_SUCCESS;
    13171318    VBOXDISPIFESCAPE_UPDATEMODES EscData = {0};
     
    13991400    DWORD winEr = NO_ERROR;
    14001401
    1401     Log(("VBoxTray: vboxDispIfResizeModesWDDM iChanged %d cDevModes %d\n", iChangedMode, cDevModes));
     1402    LogRel(("VBoxTray: vboxDispIfResizeModesWDDM fEnable %d, iChanged %d, cDevModes %d\n", fEnable, iChangedMode, cDevModes));
    14021403    VBoxRrRetryStop();
    14031404
     
    14371438
    14381439    NTSTATUS Status = Op.pIf->modeData.wddm.KmtCallbacks.pfnD3DKMTInvalidateActiveVidPn(&DdiData);
    1439     LogFunc(("InvalidateActiveVidPn 0x%08x\n", Status));
     1440    LogRel(("VBoxTray: InvalidateActiveVidPn cElements %d, returns 0x%08x\n", cElements, Status));
    14401441
    14411442    /* Resize displays always to keep the display layout because
     
    14521453            winEr = vboxDispIfUpdateModesWDDM(&Op, iChangedMode, &Size);
    14531454            if (winEr != NO_ERROR)
    1454                 WARN(("vboxDispIfUpdateModesWDDM failed %d\n", winEr));
     1455                WARN(("VBoxTray: vboxDispIfUpdateModesWDDM failed %d\n", winEr));
     1456            else
     1457                LogRel(("VBoxTray: vboxDispIfUpdateModesWDDM is OK for iChangedMode %d\n", iChangedMode));
    14551458        }
    14561459
     
    14591462            winEr = vboxDispIfResizePerform(pIf, iChangedMode, fEnable, fExtDispSup, paDisplayDevices, paDeviceModes, cDevModes);
    14601463
     1464            LogRel(("VBoxTray: vboxDispIfResizePerform returned 0x%08x for iChangedMode %d\n", winEr, iChangedMode));
    14611465            if (winEr == ERROR_RETRY)
    14621466            {
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp

    r58308 r60526  
    10041004    }
    10051005
     1006    RTLogGroupSettings(NULL, "+all.e.l.f");
     1007
    10061008    if (RT_SUCCESS(rc))
    10071009    {
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win.cpp

    r60272 r60526  
    539539                LogRelFunc(("Logging to host log enabled (%#x)", uValue));
    540540        }
     541       
     542        pDevExt->Core.fLoggingEnabled = true;
    541543
    542544        /* Ready to rumble! */
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