Changeset 25942 in vbox for trunk/src/VBox/VMM/DBGFAddrSpace.cpp
- Timestamp:
- Jan 20, 2010 5:26:22 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56784
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/DBGFAddrSpace.cpp
r22112 r25942 643 643 static int dbgfR3AsSearchEnvPath(const char *pszFilename, const char *pszEnvVar, PFNDBGFR3ASSEARCHOPEN pfnOpen, void *pvUser) 644 644 { 645 const char *pszPath = RTEnvGet(pszEnvVar); 646 if (!pszPath) 647 pszPath = "."; 648 return dbgfR3AsSearchPath(pszFilename, pszPath, pfnOpen, pvUser); 645 int rc; 646 char *pszPath = RTEnvDupEx(RTENV_DEFAULT, pszEnvVar); 647 if (pszPath) 648 { 649 rc = dbgfR3AsSearchPath(pszFilename, pszPath, pfnOpen, pvUser); 650 RTStrFree(pszPath); 651 } 652 else 653 rc = dbgfR3AsSearchPath(pszFilename, ".", pfnOpen, pvUser); 654 return rc; 649 655 } 650 656
Note:
See TracChangeset
for help on using the changeset viewer.