[Lldb-commits] [lldb] [lldb][windows] Use GetEnvironmentVariableW instead of _wgetenv (PR #199015)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu May 21 07:24:04 PDT 2026


DavidSpickett wrote:

The current function:
> Returns a pointer to the environment table entry containing varname.

And I was going to say that the new function returning a copy makes it better, but without knowing what goes on in the Windows kernel, we could just be pushing the copy code into kernel space. Maybe the time frame is smaller but it's the same risk really.

https://github.com/llvm/llvm-project/pull/199015


More information about the lldb-commits mailing list