Changeset 34959 in vbox for trunk/src/VBox/Runtime/r3/posix
- Timestamp:
- Dec 10, 2010 3:17:31 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/ldrNative-posix.cpp
r28800 r34959 41 41 42 42 43 int rtldrNativeLoad(const char *pszFilename, uintptr_t *phHandle )43 int rtldrNativeLoad(const char *pszFilename, uintptr_t *phHandle, char *pszError, size_t cbError) 44 44 { 45 45 /* … … 69 69 * Attempt load. 70 70 */ 71 72 71 void *pvMod = dlopen(pszFilename, RTLD_NOW | RTLD_LOCAL); 73 72 if (pvMod) … … 76 75 return VINF_SUCCESS; 77 76 } 78 LogRel(("rtldrNativeLoad: dlopen('%s', RTLD_NOW | RTLD_LOCAL) failed: %s\n", pszFilename, dlerror())); 77 78 const char *pszDlError = dlerror(); 79 if (pszError) 80 RTStrCopy(pszError, cbError, pszDlError); 81 LogRel(("rtldrNativeLoad: dlopen('%s', RTLD_NOW | RTLD_LOCAL) failed: %s\n", pszFilename, pszDlError)); 79 82 return VERR_FILE_NOT_FOUND; 80 83 }
Note:
See TracChangeset
for help on using the changeset viewer.