Fixed regression that was causing RegQueryValueEx to always fail.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6252 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
f2ee8319f0
commit
6047415427
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdL
|
|||
continue;
|
||||
|
||||
wsprintf(valname, _T("%u.file"), j);
|
||||
l = (lstrlen(file)+1)*sizeof(TCHAR);
|
||||
l = STR_SIZE*sizeof(TCHAR);
|
||||
if (FAILED(RegQueryValueEx(key, valname, NULL, &t, (LPBYTE) file, &l)) || t != REG_SZ)
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue