[ros-diffs] [greatlrd] 16529: second try,
thx w3seek found out it should be charterer not byte
greatlrd at svn.reactos.com
greatlrd at svn.reactos.com
Mon Jul 11 00:20:04 CEST 2005
second try, thx w3seek found out it should be charterer not byte
Modified: trunk/reactos/lib/kernel32/misc/env.c
_____
Modified: trunk/reactos/lib/kernel32/misc/env.c
--- trunk/reactos/lib/kernel32/misc/env.c 2005-07-10 22:12:07 UTC
(rev 16528)
+++ trunk/reactos/lib/kernel32/misc/env.c 2005-07-10 22:19:57 UTC
(rev 16529)
@@ -70,7 +70,7 @@
SetLastErrorByStatus (Status);
if (Status == STATUS_BUFFER_TOO_SMALL)
{
- return VarValueU.Length / sizeof(WCHAR) +
sizeof(WCHAR);
+ return VarValueU.Length / sizeof(WCHAR) + 1;
}
else
{
@@ -91,7 +91,7 @@
/* free unicode variable name string */
RtlFreeUnicodeString (&VarNameU);
- return (VarValueU.Length / sizeof(WCHAR) + sizeof(WCHAR));
+ return (VarValueU.Length / sizeof(WCHAR) + 1);
}
@@ -125,7 +125,7 @@
SetLastErrorByStatus (Status);
if (Status == STATUS_BUFFER_TOO_SMALL)
{
- return (VarValue.Length / sizeof(WCHAR)) +
sizeof(WCHAR);
+ return (VarValue.Length / sizeof(WCHAR)) + 1;
}
else
{
@@ -133,7 +133,7 @@
}
}
- return (VarValue.Length / sizeof(WCHAR) + sizeof(WCHAR));
+ return (VarValue.Length / sizeof(WCHAR) + 1);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050711/69b76784/attachment.html
More information about the Ros-diffs
mailing list