VirtualBox

Changeset 51776 in vbox for trunk/src/VBox/Runtime/testcase


Ignore:
Timestamp:
Jul 1, 2014 7:47:57 PM (10 years ago)
Author:
vboxsync
Message:

build fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstRTLdrVerifyPeImage.cpp

    r51770 r51776  
    3737
    3838
     39/*******************************************************************************
     40*   Global Variables                                                           *
     41*******************************************************************************/
     42static int g_iDummy = 0;
     43
    3944static DECLCALLBACK(int) TestCallback(RTLDRMOD hLdrMod, RTLDRSIGNATURETYPE enmSignature,
    4045                                      void const *pvSignature, size_t cbSignature,
     
    6772        if (RT_SUCCESS(rc))
    6873        {
    69             int rc;
    7074            char szDigest[512];
    7175
     
    8791                RTERRINFOSTATIC ErrInfo;
    8892                RTErrInfoInitStatic(&ErrInfo);
    89                 rc = RTLdrVerifySignature(hLdrMod, TestCallback, (void *)(uintptr_t)main, &ErrInfo.Core);
     93                rc = RTLdrVerifySignature(hLdrMod, TestCallback, &g_iDummy, &ErrInfo.Core);
    9094                if (RT_FAILURE(rc))
    9195                    RTTestFailed(hTest, "%s: %s (rc=%Rrc)", pszFilename, ErrInfo.Core.pszMsg, rc);
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