VirtualBox

Changeset 25942 in vbox for trunk/src/VBox/GuestHost


Ignore:
Timestamp:
Jan 20, 2010 5:26:22 PM (15 years ago)
Author:
vboxsync
Message:

*: RTEnv usage cleanup - avoid RTEnvGet() as it doesn't necessarily return UTF-8 encoded strings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/x11-clipboard.cpp

    r24142 r25942  
    562562static void clipStopEventThreadWorker(XtPointer pUserData, XtIntervalId *)
    563563{
    564    
     564
    565565    CLIPBACKEND *pCtx = (CLIPBACKEND *)pUserData;
    566566
     
    708708    CLIPBACKEND *pCtx = (CLIPBACKEND *)
    709709                    RTMemAllocZ(sizeof(CLIPBACKEND));
    710     if (pCtx && !RTEnvGet("DISPLAY"))
     710    if (pCtx && !RTEnvExist("DISPLAY"))
    711711    {
    712712        /*
     
    14721472/** A structure containing information about where to store a request
    14731473 * for the X11 clipboard contents. */
    1474 struct _CLIPREADX11CBREQ 
     1474struct _CLIPREADX11CBREQ
    14751475{
    14761476    /** The format VBox would like the data in */
     
    25752575    /* We can't test anything without an X session, so just return success
    25762576     * in that case. */
    2577     if (!RTEnvGet("DISPLAY"))
     2577    if (!RTEnvExist("DISPLAY"))
    25782578    {
    25792579        RTTestPrintf(hTest, RTTESTLVL_INFO,
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