From: <go...@us...> - 2012-08-07 00:34:01
|
Revision: 6252 http://nsis.svn.sourceforge.net/nsis/?rev=6252&view=rev Author: golubdr Date: 2012-08-07 00:33:55 +0000 (Tue, 07 Aug 2012) Log Message: ----------- Fixed regression that was causing RegQueryValueEx to always fail. Modified Paths: -------------- NSIS/trunk/Contrib/Library/RegTool/RegTool.c Modified: NSIS/trunk/Contrib/Library/RegTool/RegTool.c =================================================================== --- NSIS/trunk/Contrib/Library/RegTool/RegTool.c 2012-08-06 22:26:12 UTC (rev 6251) +++ NSIS/trunk/Contrib/Library/RegTool/RegTool.c 2012-08-07 00:33:55 UTC (rev 6252) @@ -66,7 +66,7 @@ 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; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |