VirtualBox

Changeset 25321 in vbox


Ignore:
Timestamp:
Dec 11, 2009 11:09:15 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55900
Message:

tstSupLoadModule: stripped off some more code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/testcase/tstSupLoadModule.cpp

    r25320 r25321  
    4242#include <iprt/path.h>
    4343#include <iprt/stream.h>
    44 #include <iprt/string.h>
    4544
    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 }
    7045
    7146int main(int argc, char **argv)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette