This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: SYSTEMROOT, SYSTEMDRIVE
On Thu, May 10, 2001 at 01:24:18PM +0400, egor duda wrote:
>you're right. always calling GetEnvironmentVariable is a waste of
>time. i've changed my patch to
>
>- avoid repeated scanning of forced env vars list.
>- look into native environment only when needed.
>- don't truncate forced vars values to MAX_PATH symbols.
This still wasn't quite what I had envisioned. I checked in a patch
that combines your code with my conception of what needed to be done.
My patch is probably slower than yours but it is quite a bit more
compact.
Thanks.
cgf