Changeset 28915 in vbox for trunk/src/VBox/Runtime/r3/solaris/rtProcInitExePath-solaris.cpp
- Timestamp:
- Apr 29, 2010 6:12:35 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/solaris/rtProcInitExePath-solaris.cpp
r28800 r28915 52 52 pszPath[cchLink] = '\0'; 53 53 54 char *pszTmp = NULL;55 int rc = rtPathFromNative(&pszTmp, pszPath );54 char const *pszTmp; 55 int rc = rtPathFromNative(&pszTmp, pszPath, NULL); 56 56 AssertMsgRCReturn(rc, ("rc=%Rrc pszLink=\"%s\"\nhex: %.*Rhsx\n", rc, pszPath, cchLink, pszPath), rc); 57 58 size_t cch = strlen(pszTmp); 59 AssertReturn(cch <= cchPath, VERR_BUFFER_OVERFLOW); 60 61 memcpy(pszPath, pszTmp, cch + 1); 62 RTStrFree(pszTmp); 63 64 return VINF_SUCCESS; 57 if (pszTmp != pszPath) 58 { 59 rc = RTStrCopy(pszPath, cchPath, pszTmp); 60 rtPathFreeIprt(pszTmp, pszPath); 61 } 62 return rc; 65 63 } 66 64
Note:
See TracChangeset
for help on using the changeset viewer.