Changeset 51776 in vbox for trunk/src/VBox/Runtime/testcase
- Timestamp:
- Jul 1, 2014 7:47:57 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstRTLdrVerifyPeImage.cpp
r51770 r51776 37 37 38 38 39 /******************************************************************************* 40 * Global Variables * 41 *******************************************************************************/ 42 static int g_iDummy = 0; 43 39 44 static DECLCALLBACK(int) TestCallback(RTLDRMOD hLdrMod, RTLDRSIGNATURETYPE enmSignature, 40 45 void const *pvSignature, size_t cbSignature, … … 67 72 if (RT_SUCCESS(rc)) 68 73 { 69 int rc;70 74 char szDigest[512]; 71 75 … … 87 91 RTERRINFOSTATIC ErrInfo; 88 92 RTErrInfoInitStatic(&ErrInfo); 89 rc = RTLdrVerifySignature(hLdrMod, TestCallback, (void *)(uintptr_t)main, &ErrInfo.Core);93 rc = RTLdrVerifySignature(hLdrMod, TestCallback, &g_iDummy, &ErrInfo.Core); 90 94 if (RT_FAILURE(rc)) 91 95 RTTestFailed(hTest, "%s: %s (rc=%Rrc)", pszFilename, ErrInfo.Core.pszMsg, rc);
Note:
See TracChangeset
for help on using the changeset viewer.