Send the right number of bytes when setting an env var

spotted by Christian Fasshauer <chrfas at googlemail dot com>

svn path=/trunk/; revision=29525
This commit is contained in:
Ged Murphy
2007-10-11 23:36:31 +00:00
parent de827eb930
commit 126300ce1b
+1 -1
View File
@@ -519,7 +519,7 @@ SetAllVars(HWND hwndDlg,
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;