VirtualBox

Changeset 50644 in vbox


Ignore:
Timestamp:
Feb 27, 2014 8:26:21 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
92538
Message:

env-generic.cpp: Workaround for lazy _wenviron initialization in the CRT.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/env-generic.cpp

    r50642 r50644  
    235235        papszEnv  = NULL;
    236236        papwszEnv = (PCRTUTF16 * const)_wenviron;
     237        if (!papwszEnv)
     238        {
     239            _wgetenv(L"Path"); /* Force the CRT to initalize it. */
     240            papwszEnv = (PCRTUTF16 * const)_wenviron;
     241        }
    237242        if (papwszEnv)
    238243            while (papwszEnv[cVars])
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