]> git.lizzy.rs Git - rust.git/commit
Do not recalculate string length in error_string
authorSimonas Kazlauskas <git@kazlauskas.me>
Tue, 25 Aug 2015 15:26:29 +0000 (18:26 +0300)
committerSimonas Kazlauskas <git@kazlauskas.me>
Tue, 25 Aug 2015 15:33:39 +0000 (18:33 +0300)
commitc4c533a2935f1e39ef94920d9f1430ba75c69376
tree0dff24b06a98017e2391a565c1141afd22ee6124
parent2b45a0d90853deca584a28a55237d996a274a833
Do not recalculate string length in error_string

According to https://msdn.microsoft.com/en-us/library/windows/desktop/ms679351(v=vs.85).aspx:

> If the function succeeds, the return value is the number of TCHARs stored in the output buffer,
> excluding the terminating null character.
src/libstd/sys/windows/os.rs