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