VirtualBox

Ignore:
Timestamp:
Jul 26, 2022 11:36:23 PM (2 years ago)
Author:
vboxsync
Message:

tstUserInfo: Use RTEnvGet instead of getenv so it builds in VBOX_WITH_NOCRT_STATIC mode. bugref:10261

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/testcase/tstUserInfo.cpp

    r93115 r95849  
    2727#include <iprt/initterm.h>
    2828#include <iprt/path.h>
     29#include <iprt/env.h>
    2930#include <iprt/stream.h>
    3031#include <iprt/string.h>
     
    7071    /* Dump env bits. */
    7172    RTPrintf("Environment:\n\n");
    72     RTPrintf("APPDATA = %s\n", getenv("APPDATA"));
     73    RTPrintf("APPDATA = %s\n", RTEnvGet("APPDATA"));
    7374#endif
    7475    return RT_SUCCESS(rc) ? RTEXITCODE_SUCCESS : RTEXITCODE_FAILURE;
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