VirtualBox

Changeset 11468 in vbox for trunk/src/VBox/Runtime/r3/posix


Ignore:
Timestamp:
Aug 18, 2008 4:59:10 PM (16 years ago)
Author:
vboxsync
Message:
  • first working XPCOM binding version
  • implemented check for VBOX_PROGRAM_PATH to override program path
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/path-posix.cpp

    r10911 r11468  
    411411     */
    412412    if (!g_szrtProgramPath[0])
    413     {
     413    {     
     414        char* envPath = getenv("VBOX_PROGRAM_PATH");
     415        if (envPath)
     416        {
     417          strncpy(g_szrtProgramPath, envPath, sizeof(g_szrtProgramPath));
     418        } else {
    414419        /*
    415420         * Linux have no API for obtaining the executable path, but provides a symbolic link
     
    452457# error needs porting.
    453458#endif
    454 
     459        }
    455460        /*
    456461         * Convert to UTF-8 and strip of the filename.
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