Changeset 35183 in vbox for trunk/src/VBox/Runtime/r3/win
- Timestamp:
- Dec 16, 2010 1:59:44 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 69022
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/ldrNative-win.cpp
r35152 r35183 40 40 41 41 42 int rtldrNativeLoad(const char *pszFilename, uintptr_t *phHandle, uint32_t fFlags, char *pszError, size_t cbError)42 int rtldrNativeLoad(const char *pszFilename, uintptr_t *phHandle, uint32_t fFlags, PRTERRINFO pErrInfo) 43 43 { 44 44 Assert(sizeof(*phHandle) >= sizeof(HMODULE)); … … 53 53 char *psz = (char *)alloca(cch + sizeof(".DLL")); 54 54 if (!psz) 55 return VERR_NO_MEMORY;55 return RTErrInfoSet(pErrInfo, VERR_NO_MEMORY, "alloca failed"); 56 56 memcpy(psz, pszFilename, cch); 57 57 memcpy(psz + cch, ".DLL", sizeof(".DLL")); … … 74 74 DWORD dwErr = GetLastError(); 75 75 int rc = RTErrConvertFromWin32(dwErr); 76 if (cbError) 77 RTStrPrintf(pszError, cbError, "GetLastError=%u", dwErr); 78 return rc; 76 return RTErrInfoSetF(pErrInfo, rc, "GetLastError=%u", dwErr); 79 77 } 80 78
Note:
See TracChangeset
for help on using the changeset viewer.