mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user