Opened 13 years ago

Closed 12 years ago

#3319 closed Bugs (invalid)

environment.hpp

Reported by: anonymous Owned by: bschaeling
Milestone: Boost 1.40.0 Component: None
Version: Boost 1.39.0 Severity: Problem
Keywords: Cc:

Description

Hi there, in the function

inline environment::environment(void)

in the BOOST_PROCESS_WIN32_API defnition you supply the wrong pointer to the FreeEnvironmentStrings() function. Currently you're passing the pointer that was incremented to process the variable. You should be providing the original pointer to the heap.

Should be:

TCHAR* es = ::GetEnvironmentStrings(); TCHAR* es2 = es;

do your iterating with es

::FreeEnvironmentStrings(es2);

Change History (2)

comment:1 by Steven Watanabe, 13 years ago

Owner: set to bschaeling

The trac system should really only be used for accepted libraries.

comment:2 by Marshall Clow, 12 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.