Changeset 25321 in vbox
- Timestamp:
- Dec 11, 2009 11:09:15 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 55900
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/testcase/tstSupLoadModule.cpp
r25320 r25321 42 42 #include <iprt/path.h> 43 43 #include <iprt/stream.h> 44 #include <iprt/string.h>45 44 46 47 /**48 * Makes a path to a file in the executable directory.49 */50 static char *ExeDirFile(char *pszFile, const char *pszArgv0, const char *pszFilename)51 {52 char *psz;53 char *psz2;54 55 strcpy(pszFile, pszArgv0);56 psz = strrchr(pszFile, '/');57 psz2 = strrchr(pszFile, '\\');58 if (psz < psz2)59 psz = psz2;60 if (!psz)61 psz = strrchr(pszFile, ':');62 if (!psz)63 {64 strcpy(pszFile, "./");65 psz = &pszFile[1];66 }67 strcpy(psz + 1, "VMMR0.r0");68 return pszFile;69 }70 45 71 46 int main(int argc, char **argv)
Note:
See TracChangeset
for help on using the changeset viewer.