VirtualBox

Changeset 11822 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Aug 29, 2008 2:21:03 PM (16 years ago)
Author:
vboxsync
Message:

IPRT: RTR3Init cleanup.

Location:
trunk/src/VBox/Additions
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp

    r10778 r11822  
    409409
    410410    if (0 == ghSeamlessNotifyEvent)         /* If seamless mode is not active / supported, reduce event array count */
    411         dwEventCount = 1;                       
     411        dwEventCount = 1;
    412412
    413413    Log(("VBoxTray: Number of events to wait in main loop: %ld\n", dwEventCount));
     
    491491    /* Do not use a global namespace ("Global\\") for mutex name here, will blow up NT4 compatibility! */
    492492    HANDLE hMutexAppRunning = CreateMutex (NULL, FALSE, "VBoxTray");
    493     if (   (hMutexAppRunning != NULL) 
     493    if (   (hMutexAppRunning != NULL)
    494494        && (GetLastError() == ERROR_ALREADY_EXISTS))
    495495    {
     
    500500    }
    501501
    502     int rc = RTR3Init(false);
     502    int rc = RTR3Init();
    503503    if (RT_FAILURE(rc))
    504504        return rc;
  • trunk/src/VBox/Additions/common/VBoxControl/VBoxControl.cpp

    r11563 r11822  
    540540    }
    541541    else VBoxControlError("Error retrieving handle to user32.dll!");
    542    
     542
    543543    return 0;
    544544}
     
    863863        RegCloseKey(hkeyVideo);
    864864    }
    865    
     865
    866866    return 0;
    867867}
     
    12231223    if (!onlyinfo)
    12241224    {
    1225         rrc = RTR3Init(false, 0);
     1225        rrc = RTR3Init(); /** @todo r=bird: This ALWAYS goes first, the only exception is when you have to parse args to figure out which to call! */
    12261226        if (!RT_SUCCESS(rrc))
    12271227        {
  • trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp

    r10654 r11822  
    230230     * Init globals and such.
    231231     */
    232     RTR3Init(false, 0);
     232    RTR3Init();
    233233    g_pszProgName = RTPathFilename(argv[0]);
    234234    for (unsigned j = 0; j < RT_ELEMENTS(g_aServices); j++)
  • trunk/src/VBox/Additions/x11/xclient/main.cpp

    r11648 r11822  
    196196
    197197    /* Initialise our runtime before all else. */
    198     RTR3Init(false);
     198    RTR3Init();
    199199
    200200    /* Parse our option(s) */
  • trunk/src/VBox/Additions/x11/xclient/testcase/tstSeamlessX11.cpp

    r8155 r11822  
    110110    std::string sTmp;
    111111
    112     RTR3Init(false);
     112    RTR3Init();
    113113    std::cout << "VirtualBox guest additions X11 seamless mode testcase" << std::endl;
    114114    if (0 == XInitThreads())
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