VirtualBox

Changeset 7016 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 19, 2008 1:32:39 PM (17 years ago)
Author:
vboxsync
Message:

Compile fixes

Location:
trunk/src/VBox/Runtime/testcase
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstLdr-2.cpp

    r5999 r7016  
    118118                    if (off < cb)
    119119                    {
    120                         DISCPUSTATE Cpu = {0};
     120                        DISCPUSTATE Cpu;
     121
     122                        memset(&Cpu, 0, sizeof(Cpu));
    121123                        Cpu.mode = CPUMODE_32BIT;
    122124                        if (MyDisBlock(&Cpu, (RTUINTPTR)pvBits + off, 200, Addr - (uintptr_t)pvBits))
  • trunk/src/VBox/Runtime/testcase/tstLdr-3.cpp

    r5999 r7016  
    208208                    if (NearSym.Addr - NearSym.aSyms[0].Value < 0x10000)
    209209                    {
    210                         DISCPUSTATE Cpu = {0};
     210                        DISCPUSTATE Cpu;
     211                        memset(&Cpu, 0, sizeof(Cpu));
    211212                        Cpu.mode = CPUMODE_32BIT;
    212213                        uint8_t *pbCode = (uint8_t *)pvBits + (NearSym.aSyms[0].Value - LoadAddr);
  • trunk/src/VBox/Runtime/testcase/tstLdrDisasmTest.cpp

    r5999 r7016  
    110110extern "C" DECLEXPORT(int) DisasmTest1(void)
    111111{
    112     DISCPUSTATE Cpu = {0};
     112    DISCPUSTATE Cpu;
    113113    uintptr_t CodeIndex = 0;
    114114    uint32_t cb;
    115115    int rc;
    116116    MY_PRINTF(("DisasmTest1: %p\n", &DisasmTest1));
     117
     118    memset(&Cpu, 0, sizeof(Cpu));
     119    Cpu.mode = CPUMODE_32BIT;
    117120
    118121#define DISAS_AND_CHECK(cbInstr, enmOp) \
  • trunk/src/VBox/Runtime/testcase/tstLdrObj.cpp

    r5999 r7016  
    9595{
    9696    static unsigned cb;
    97     DISCPUSTATE Cpu = {0};
     97    DISCPUSTATE Cpu;
     98    memset(&Cpu, 0, sizeof(Cpu));
     99    Cpu.mode = CPUMODE_32BIT;
    98100    DISCoreOne(&Cpu, (RTGCUINTPTR)SomeExportFunction3, &cb);
    99101    return (void *)(uintptr_t)&SomeExportFunction1;
  • trunk/src/VBox/Runtime/testcase/tstLdrObjR0.cpp

    r5999 r7016  
    9090{
    9191    static unsigned cb;
    92     DISCPUSTATE Cpu = {0};
     92    DISCPUSTATE Cpu;
     93
     94    memset(&Cpu, 0, sizeof(Cpu));
     95    Cpu.mode = CPUMODE_32BIT;
     96
    9397    DISCoreOne(&Cpu, (uintptr_t)SomeExportFunction3, &cb);
    9498    return (void *)(uintptr_t)&SomeExportFunction1;
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