VirtualBox

Changeset 38636 in vbox for trunk/src/libs/xpcom18a4/python


Ignore:
Timestamp:
Sep 5, 2011 1:49:45 PM (13 years ago)
Author:
vboxsync
Message:

*,IPRT: Redid the ring-3 init to always convert the arguments to UTF-8.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/python/src/module/_xpcom.cpp

    r31604 r38636  
    781781
    782782#if defined(VBOX_PATH_APP_PRIVATE_ARCH) && defined(VBOX_PATH_SHARED_LIBS)
    783     rc = RTR3Init();
     783    rc = RTR3InitDll(0);
    784784#else
    785785    const char *home = getenv("VBOX_PROGRAM_PATH");
     
    789789      memcpy(exepath, home, len);
    790790      memcpy(exepath + len, "/pythonfake", sizeof("/pythonfake"));
    791       rc = RTR3InitWithProgramPath(exepath);
     791      rc = RTR3InitEx(RTR3INIT_VER_CUR, RTR3INIT_FLAGS_DLL, 0, NULL, exepath);
    792792    } else {
    793       rc = RTR3Init();
     793      rc = RTR3InitDll(0);
    794794    }
    795795#endif
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