"Bug" 733817
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2538 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
1291c2033e
commit
3cdfec78cf
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ void NSISCALL myRegGetStr(HKEY root, const char *sub, const char *name, char *ou
|
||||||
{
|
{
|
||||||
DWORD l = NSIS_MAX_STRLEN;
|
DWORD l = NSIS_MAX_STRLEN;
|
||||||
DWORD t;
|
DWORD t;
|
||||||
if (RegQueryValueEx(hKey,name,NULL,&t,out,&l ) != ERROR_SUCCESS || t != REG_SZ) *out=0;
|
if (RegQueryValueEx(hKey,name,NULL,&t,out,&l ) != ERROR_SUCCESS || (t != REG_SZ && t != REG_EXPAND_SZ)) *out=0;
|
||||||
out[NSIS_MAX_STRLEN-1]=0;
|
out[NSIS_MAX_STRLEN-1]=0;
|
||||||
RegCloseKey(hKey);
|
RegCloseKey(hKey);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue