VirtualBox

Changeset 106519 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Oct 20, 2024 2:29:46 AM (4 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
165351
Message:

VMM/NEM-win: More {} for nested structs/union with stricter VC 2022. jiraref:VBP-1171

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/NEMAllNativeTemplate-win.cpp.h

    r106061 r106519  
    10771077    /* Call the offical API. */
    10781078    WHV_REGISTER_NAME  aenmNames[2] = { WHvX64RegisterTsc, WHvX64RegisterTscAux };
    1079     WHV_REGISTER_VALUE aValues[2]   = { { {0, 0} }, { {0, 0} } };
     1079    WHV_REGISTER_VALUE aValues[2]   = { { { { 0, 0 } } }, { { { 0, 0 } } } };
    10801080    Assert(RT_ELEMENTS(aenmNames) == RT_ELEMENTS(aValues));
    10811081    HRESULT hrc = WHvGetVirtualProcessorRegisters(pVM->nem.s.hPartition, pVCpu->idCpu, aenmNames, 2, aValues);
     
    11141114    /* Start with the first CPU. */
    11151115    WHV_REGISTER_NAME  enmName   = WHvX64RegisterTsc;
    1116     WHV_REGISTER_VALUE Value     = { {0, 0} };
     1116    WHV_REGISTER_VALUE Value     = { { { 0, 0 } } };
    11171117    Value.Reg64 = uPausedTscValue;
    11181118    uint64_t const     uFirstTsc = ASMReadTSC();
     
    26052605                    static const WHV_REGISTER_NAME s_aNames[6] = { WHvX64RegisterCs, WHvX64RegisterRip, WHvX64RegisterRflags,
    26062606                                                                   WHvX64RegisterSs, WHvX64RegisterRsp, WHvX64RegisterCr0 };
    2607                     WHV_REGISTER_VALUE aRegs[RT_ELEMENTS(s_aNames)] = { {{0, 0} } };
     2607                    WHV_REGISTER_VALUE aRegs[RT_ELEMENTS(s_aNames)] = { { { {0, 0} } } };
    26082608                    WHvGetVirtualProcessorRegisters(pVM->nem.s.hPartition, pVCpu->idCpu, s_aNames, RT_ELEMENTS(s_aNames), aRegs);
    26092609                    LogFlow(("NEM/%u: Entry @ %04x:%08RX64 IF=%d EFL=%#RX64 SS:RSP=%04x:%08RX64 cr0=%RX64\n",
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