VirtualBox

Changeset 83822 in vbox for trunk/src


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

VBoxService: VC++ 14.1 adjustments and warnings. bugref:8489

Location:
trunk/src/VBox/Additions/common/VBoxService
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/Makefile.kmk

    r82968 r83822  
    8888        $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,)
    8989
    90 VBoxService_DEFS         += \
    91         VBOX_BUILD_TARGET=\"$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)\"
     90ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
     91VBoxService_DEFS         += VBOX_BUILD_TARGET="$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)"
     92else
     93VBoxService_DEFS         += VBOX_BUILD_TARGET=\"$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)\"
     94endif
    9295VBoxService_DEFS.win     += _WIN32_WINNT=0x0501
    9396VBoxService_DEFS.os2      = VBOX_WITH_HGCM
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp

    r83718 r83822  
    885885    for (char chDrive = 'Z'; chDrive >= 'A'; chDrive--)
    886886    {
    887         RTUTF16 const wszMountPoint[4] = { chDrive, ':', '\0', '\0' };
     887        RTUTF16 const wszMountPoint[4] = { (RTUTF16)chDrive, ':', '\0', '\0' };
    888888        RTUTF16       wszTargetPath[RTPATH_MAX];
    889889        DWORD const   cwcResult = QueryDosDeviceW(wszMountPoint, wszTargetPath, RT_ELEMENTS(wszTargetPath));
     
    14321432     */
    14331433    Assert(RT_C_IS_UPPER(pEntry->pszActualMountPoint[0]) && pEntry->pszActualMountPoint[1] == ':' && pEntry->pszActualMountPoint[2] == '\0');
    1434     RTUTF16 wszDrive[4] = { pEntry->pszActualMountPoint[0], ':', '\0', '\0' };
     1434    RTUTF16 wszDrive[4] = { (RTUTF16)pEntry->pszActualMountPoint[0], ':', '\0', '\0' };
    14351435
    14361436    RTUTF16 wszPrefixedName[RTPATH_MAX];
     
    18601860#ifdef RT_OS_WINDOWS
    18611861        Assert(RT_C_IS_UPPER(pszMountPoint[0]) && pszMountPoint[1] == ':' && pszMountPoint[2] == '\0');
    1862         RTUTF16 const wszDrive[4] = { pszMountPoint[0], ':', '\0', '\0' };
     1862        RTUTF16 const wszDrive[4] = { (RTUTF16)pszMountPoint[0], ':', '\0', '\0' };
    18631863        DWORD dwErr = WNetCancelConnection2W(wszDrive, 0 /*dwFlags*/, FALSE /*fForce*/);
    18641864        if (dwErr == NO_ERROR)
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServicePageSharing.cpp

    r82968 r83822  
    499499                    pRec = &pModule->Core;
    500500                }
    501                 bool ret = RTAvlPVInsert(&pNewTree, pRec);
    502                 Assert(ret); NOREF(ret);
     501                bool fRet = RTAvlPVInsert(&pNewTree, pRec);
     502                Assert(fRet); NOREF(fRet);
    503503            }
    504504        }
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