Changeset 50226 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Jan 24, 2014 3:57:37 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/darwin/rtProcInitExePath-darwin.cpp
r44528 r50226 33 33 #endif 34 34 35 #include <stdlib.h> 36 #include <limits.h> 37 #include <errno.h> 35 38 #include <iprt/string.h> 36 39 #include <iprt/assert.h> … … 49 52 AssertReturn(pszImageName, VERR_INTERNAL_ERROR); 50 53 51 int rc = rtPathFromNativeCopy(pszPath, cchPath, pszImageName, NULL); 54 char szTmpPath[PATH_MAX + 1]; 55 const char *psz = realpath(pszImageName, szTmpPath); 56 int rc; 57 if (psz) 58 rc = rtPathFromNativeCopy(pszPath, cchPath, szTmpPath, NULL); 59 else 60 rc = RTErrConvertFromErrno(errno); 52 61 AssertMsgRCReturn(rc, ("rc=%Rrc pszLink=\"%s\"\nhex: %.*Rhxs\n", rc, pszPath, strlen(pszImageName), pszPath), rc); 53 62
Note:
See TracChangeset
for help on using the changeset viewer.