size optimization

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4930 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2007-02-17 09:56:21 +00:00
parent 874036d83d
commit fac39f2435

View file

@ -615,17 +615,9 @@ char * NSISCALL GetNSISString(char *outbuf, int strtab)
if (nVarIdx == NS_SHELL_CODE)
{
LPITEMIDLIST idl;
char *append = 0;
int x = 2;
// all users' version is CSIDL_APPDATA only for $QUICKLAUNCH
// for normal $APPDATA, it'd be CSIDL_APPDATA_COMMON
if (fldrs[2] == CSIDL_APPDATA)
{
append = "\\Microsoft\\Internet Explorer\\Quick Launch";
}
if (g_exec_flags.all_user_var)
{
x = 4;
@ -668,9 +660,14 @@ char * NSISCALL GetNSISString(char *outbuf, int strtab)
}
}
if (*out && append)
if (*out)
{
mystrcat(out, append);
// all users' version is CSIDL_APPDATA only for $QUICKLAUNCH
// for normal $APPDATA, it'd be CSIDL_APPDATA_COMMON
if (fldrs[2] == CSIDL_APPDATA)
{
mystrcat(out, "\\Microsoft\\Internet Explorer\\Quick Launch");
}
}
validate_filename(out);