Changeset 917 in vbox
- Timestamp:
- Feb 15, 2007 1:55:55 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 18645
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstLdr-4.cpp
r915 r917 49 49 static DECLCALLBACK(int) testGetImport(RTLDRMOD hLdrMod, const char *pszModule, const char *pszSymbol, unsigned uSymbol, RTUINTPTR *pValue, void *pvUser) 50 50 { 51 if ( !strcmp(pszSymbol, "AssertMsg1"))51 if ( !strcmp(pszSymbol, "AssertMsg1") || !strcmp(pszSymbol, "_AssertMsg1")) 52 52 *pValue = (uintptr_t)AssertMsg1; 53 else if (!strcmp(pszSymbol, "AssertMsg2") )53 else if (!strcmp(pszSymbol, "AssertMsg2") || !strcmp(pszSymbol, "_AssertMsg2")) 54 54 *pValue = (uintptr_t)AssertMsg2; 55 else if (!strcmp(pszSymbol, "RTLogDefaultInstance") )55 else if (!strcmp(pszSymbol, "RTLogDefaultInstance") || !strcmp(pszSymbol, "_RTLogDefaultInstance")) 56 56 *pValue = (uintptr_t)RTLogDefaultInstance; 57 else if (!strcmp(pszSymbol, "MyPrintf") )57 else if (!strcmp(pszSymbol, "MyPrintf") || !strcmp(pszSymbol, "_MyPrintf")) 58 58 *pValue = (uintptr_t)RTPrintf; 59 59 else … … 154 154 RTUINTPTR Value; 155 155 rc = RTLdrGetSymbolEx(aLoads[i].hLdrMod, aLoads[i].pvBits, (uintptr_t)aLoads[i].pvBits, "DisasmTest1", &Value); 156 if (rc == VERR_SYMBOL_NOT_FOUND) 157 rc = RTLdrGetSymbolEx(aLoads[i].hLdrMod, aLoads[i].pvBits, (uintptr_t)aLoads[i].pvBits, "_DisasmTest1", &Value); 156 158 if (RT_FAILURE(rc)) 157 159 {
Note:
See TracChangeset
for help on using the changeset viewer.