Author: gedmurphy
Date: Fri Oct 12 03:36:31 2007
New Revision: 29525
URL:
http://svn.reactos.org/svn/reactos?rev=29525&view=rev
Log:
Send the right number of bytes when setting an env var
spotted by Christian Fasshauer <chrfas at googlemail dot com>
Modified:
trunk/reactos/dll/cpl/sysdm/environment.c
Modified: trunk/reactos/dll/cpl/sysdm/environment.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/sysdm/environment.…
==============================================================================
--- trunk/reactos/dll/cpl/sysdm/environment.c (original)
+++ trunk/reactos/dll/cpl/sysdm/environment.c Fri Oct 12 03:36:31 2007
@@ -519,7 +519,7 @@
0,
Type,
(LPBYTE) VarData->lpRawValue,
- (DWORD) (_tcslen(VarData->lpRawValue)*
sizeof(TCHAR))+1)) // was _tcsclen. lstrlen?
+ (DWORD)(_tcslen(VarData->lpRawValue) + 1) *
sizeof(TCHAR)))
{
RegCloseKey(hk);
return;