mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 21:28:55 +00:00

The buffer length returned from ExpandEnvironmentStringsW includes the terminatng null character, so we need to decrement it before setting the string length, as XPCOM strings need to be stored with correct length information.