mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 14:23:18 +00:00
return the length of the string excluding the null-termination character on success in GetEnvironmentVariable(). Thanks to Hartmut.
svn path=/trunk/; revision=16536
This commit is contained in:
parent
9b991b83fd
commit
fcc95c66a8
1 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ GetEnvironmentVariableA (
|
||||||
/* free unicode variable name string */
|
/* free unicode variable name string */
|
||||||
RtlFreeUnicodeString (&VarNameU);
|
RtlFreeUnicodeString (&VarNameU);
|
||||||
|
|
||||||
return (VarValueU.Length / sizeof(WCHAR) + 1);
|
return (VarValueU.Length / sizeof(WCHAR));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ GetEnvironmentVariableW (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (VarValue.Length / sizeof(WCHAR) + 1);
|
return (VarValue.Length / sizeof(WCHAR));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue