VirtualBox

Changeset 48137 in vbox


Ignore:
Timestamp:
Aug 29, 2013 6:19:59 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
88518
Message:

FE/Qt and FE/SDL: always call XInitThreads() before any other Xlib calls.

Location:
trunk/src/VBox/Frontends
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r46649 r48137  
    733733DECLEXPORT(int) TrustedMain(int argc, char **argv, char **envp)
    734734{
     735#ifdef Q_WS_X11
     736    if (!XInitThreads())
     737        return 1;
     738#endif
    735739#ifdef VBOXSDL_WITH_X11
    736740    /*
     
    30433047int main(int argc, char **argv)
    30443048{
     3049#ifdef Q_WS_X11
     3050    if (!XInitThreads())
     3051        return 1;
     3052#endif
    30453053    /*
    30463054     * Before we do *anything*, we initialize the runtime.
  • trunk/src/VBox/Frontends/VirtualBox/src/main.cpp

    r47831 r48137  
    300300    int iResultCode = 1;
    301301
     302#ifdef Q_WS_X11
     303    if (!XInitThreads())
     304        return 1;
     305#endif
     306
    302307    /* Simulate try-catch block: */
    303308    do
     
    537542     * Don't do this if we are only starting the selector window. */
    538543    bool fInitSUPLib = false;
     544#ifdef Q_WS_X11
     545    if (!XInitThreads())
     546        return 1;
     547#endif
    539548    for (int i = 1; i < argc; ++i)
    540549    {
Note: See TracChangeset for help on using the changeset viewer.

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