VirtualBox

Changeset 93299 in vbox for trunk/src


Ignore:
Timestamp:
Jan 18, 2022 11:23:59 AM (3 years ago)
Author:
vboxsync
Message:

Add/win: VC++ 19.2 update 11 build adjustments. bugref:8489

Location:
trunk/src/VBox/Additions/WINNT
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/gallium/GaDxva.cpp

    r93115 r93299  
    597597    AssertReturn(pSrcRect->bottom > pSrcRect->top, S_OK);
    598598
    599     float const cSrcWidth = pVideoProcessDevice->VideoDesc.SampleWidth;
     599    float const cSrcWidth  = pVideoProcessDevice->VideoDesc.SampleWidth;
    600600    float const cSrcHeight = pVideoProcessDevice->VideoDesc.SampleHeight;
    601601
    602     float const uSrcLeft   = pSrcRect->left/cSrcWidth;
    603     float const uSrcRight  = pSrcRect->right/cSrcWidth;
    604     float const vSrcTop    = pSrcRect->top/cSrcHeight;
    605     float const vSrcBottom = pSrcRect->bottom/cSrcHeight;
     602    float const uSrcLeft   = (float)pSrcRect->left   / cSrcWidth;
     603    float const uSrcRight  = (float)pSrcRect->right  / cSrcWidth;
     604    float const vSrcTop    = (float)pSrcRect->top    / cSrcHeight;
     605    float const vSrcBottom = (float)pSrcRect->bottom / cSrcHeight;
    606606
    607607    /* Subtract 0.5 to line up the pixel centers with texels
    608608     * https://docs.microsoft.com/en-us/windows/win32/direct3d9/directly-mapping-texels-to-pixels
    609609     */
    610     float const xDstLeft   = pDstRect->left - 0.5f;
    611     float const xDstRight  = pDstRect->right - 0.5f;
    612     float const yDstTop    = pDstRect->top - 0.5f;
    613     float const yDstBottom = pDstRect->bottom - 0.5f;
     610    float const xDstLeft   = (float)pDstRect->left  - 0.5f;
     611    float const xDstRight  = (float)pDstRect->right - 0.5f;
     612    float const yDstTop    = (float)pDstRect->top    - 0.5f;
     613    float const yDstBottom = (float)pDstRect->bottom - 0.5f;
    614614
    615615    Vertex const aVertices[] =
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/shared/VBoxDispKmt.cpp

    r93115 r93299  
    272272            if (f || EnumAdapters.Adapters[i].NumOfSources)
    273273            {
    274                 D3DKMT_OPENADAPTERFROMLUID OpenAdapterData = {0};
     274                D3DKMT_OPENADAPTERFROMLUID OpenAdapterData = {{0}};
    275275                OpenAdapterData.AdapterLuid = EnumAdapters.Adapters[i].AdapterLuid;
    276276                Status = pCallbacks->pfnD3DKMTOpenAdapterFromLuid(&OpenAdapterData);
    277     #ifdef DEBUG_misha
     277#ifdef DEBUG_misha
    278278                Assert(!Status);
    279     #endif
     279#endif
    280280                if (NT_SUCCESS(Status))
    281281                {
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/shared/VBoxDispMpLogger.cpp

    r93115 r93299  
    5252} VBOXDISPMPLOGGER, *PVBOXDISPMPLOGGER;
    5353
    54 static VBOXDISPMPLOGGER g_VBoxDispMpLogger = {0};
     54static VBOXDISPMPLOGGER g_VBoxDispMpLogger = { {0}, VBOXDISPMPLOGGER_STATE_UNINITIALIZED };
    5555
    5656static PVBOXDISPMPLOGGER vboxDispMpLoggerGet()
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/common/VBoxMPVidModes.cpp

    r93115 r93299  
    2626
    2727/* Custom video modes which are being read from registry at driver startup. */
    28 static VIDEO_MODE_INFORMATION g_CustomVideoModes[VBOX_VIDEO_MAX_SCREENS] = { 0 };
     28static VIDEO_MODE_INFORMATION g_CustomVideoModes[VBOX_VIDEO_MAX_SCREENS] = { {0} };
    2929
    3030static BOOLEAN
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxMPDriver.cpp

    r93115 r93299  
    3434*   Global Variables                                                                                                             *
    3535*********************************************************************************************************************************/
    36 /* Resource list */
     36/** Legacy VGA resource list. */
    3737static VIDEO_ACCESS_RANGE  g_aVBoxLegacyVGAResources[] =
    3838{
    39     { 0x000003B0, 0x00000000, 0x0000000C, 1, 1, 1, 0 }, /* VGA regs (0x3B0-0x3BB) */
    40     { 0x000003C0, 0x00000000, 0x00000020, 1, 1, 1, 0 }, /* VGA regs (0x3C0-0x3DF) */
    41     { 0x000A0000, 0x00000000, 0x00020000, 0, 0, 1, 0 }, /* Frame buffer (0xA0000-0xBFFFF) */
     39    /* RangeStart               Length      I  V  S  P
     40                                            n  i  h  a
     41                                            I  s  a  s
     42                                            o  i  r  s
     43                                            S  b  a  i
     44                                            p  l  b  v
     45                                            a  e  l  e
     46                                            c     e
     47                                            e          */
     48    { {0x000003B0, 0x00000000}, 0x0000000C, 1, 1, 1, 0 }, /* VGA regs (0x3B0-0x3BB) */
     49    { {0x000003C0, 0x00000000}, 0x00000020, 1, 1, 1, 0 }, /* VGA regs (0x3C0-0x3DF) */
     50    { {0x000A0000, 0x00000000}, 0x00020000, 0, 0, 1, 0 }, /* Frame buffer (0xA0000-0xBFFFF) */
    4251};
    4352
  • trunk/src/VBox/Additions/WINNT/VBoxCredProv/VBoxCredentialProvider.h

    r93115 r93299  
    8181{
    8282    /** The user's profile image (tile). */
    83     { { VBOXCREDPROV_FIELDID_TILEIMAGE,      CPFT_TILE_IMAGE,    L"Tile Image",     0,                             }, CPFS_DISPLAY_IN_BOTH,            CPFIS_NONE    },
     83    { { VBOXCREDPROV_FIELDID_TILEIMAGE,      CPFT_TILE_IMAGE,    L"Tile Image",     {0}                            }, CPFS_DISPLAY_IN_BOTH,            CPFIS_NONE    },
    8484    { { VBOXCREDPROV_FIELDID_USERNAME,       CPFT_LARGE_TEXT,    L"Username",       CPFG_LOGON_USERNAME            }, CPFS_DISPLAY_IN_BOTH,            CPFIS_NONE    },
    8585    { { VBOXCREDPROV_FIELDID_PASSWORD,       CPFT_PASSWORD_TEXT, L"Password",       CPFG_LOGON_PASSWORD            }, CPFS_DISPLAY_IN_SELECTED_TILE,   CPFIS_FOCUSED },
    86     { { VBOXCREDPROV_FIELDID_DOMAINNAME,     CPFT_LARGE_TEXT,    L"",                                           }, CPFS_DISPLAY_IN_SELECTED_TILE,   CPFIS_FOCUSED },
    87     { { VBOXCREDPROV_FIELDID_SUBMIT_BUTTON,  CPFT_SUBMIT_BUTTON, L"Submit",                                     }, CPFS_DISPLAY_IN_SELECTED_TILE,   CPFIS_FOCUSED },
     86    { { VBOXCREDPROV_FIELDID_DOMAINNAME,     CPFT_LARGE_TEXT,    L"",               {0}                            }, CPFS_DISPLAY_IN_SELECTED_TILE,   CPFIS_FOCUSED },
     87    { { VBOXCREDPROV_FIELDID_SUBMIT_BUTTON,  CPFT_SUBMIT_BUTTON, L"Submit",         {0}                            }, CPFS_DISPLAY_IN_SELECTED_TILE,   CPFIS_FOCUSED },
    8888    /** New since Windows 8: The image used to represent a credential provider on the logon page. */
    8989    { { VBOXCREDPROV_FIELDID_PROVIDER_LOGO,  CPFT_TILE_IMAGE,    L"Provider Logo",  CPFG_CREDENTIAL_PROVIDER_LOGO  }, CPFS_HIDDEN /* Not used yet. */, CPFIS_NONE },
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDispIf.cpp

    r93115 r93299  
    14231423{
    14241424    DWORD winEr = ERROR_SUCCESS;
    1425     VBOXDISPIFESCAPE_UPDATEMODES EscData = {0};
     1425    VBOXDISPIFESCAPE_UPDATEMODES EscData = {{0}};
    14261426    EscData.EscapeHdr.escapeCode = VBOXESC_UPDATEMODES;
    14271427    EscData.u32TargetId = u32TargetId;
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDisplay.cpp

    r93115 r93299  
    152152    if (RT_SUCCESS(rc))
    153153    {
    154         VBOXDISPIFESCAPE_ISANYX IsAnyX = { 0 };
     154        VBOXDISPIFESCAPE_ISANYX IsAnyX = { {0} };
    155155        IsAnyX.EscapeHdr.escapeCode = VBOXESC_ISANYX;
    156156        DWORD err = VBoxDispIfEscapeInOut(&pEnv->dispIf, &IsAnyX.EscapeHdr, sizeof(uint32_t));
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.cpp

    r93115 r93299  
    15531553    int iScreenY = GetSystemMetrics(SM_CYSCREEN) - 1;
    15541554
    1555     INPUT Input[1] = { 0 };
     1555    INPUT Input[1] = { {0} };
    15561556    Input[0].type       = INPUT_MOUSE;
    15571557    Input[0].mi.dwFlags = MOUSEEVENTF_MOVE | MOUSEEVENTF_ABSOLUTE
     
    15991599    /* Release mouse button in the guest to start the "drop"
    16001600     * action at the current mouse cursor position. */
    1601     INPUT Input[1] = { 0 };
     1601    INPUT Input[1] = { {0} };
    16021602    Input[0].type       = INPUT_MOUSE;
    16031603    Input[0].mi.dwFlags = MOUSEEVENTF_LEFTUP;
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