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:
parent
874036d83d
commit
fac39f2435
1 changed files with 7 additions and 10 deletions
|
@ -615,17 +615,9 @@ char * NSISCALL GetNSISString(char *outbuf, int strtab)
|
||||||
if (nVarIdx == NS_SHELL_CODE)
|
if (nVarIdx == NS_SHELL_CODE)
|
||||||
{
|
{
|
||||||
LPITEMIDLIST idl;
|
LPITEMIDLIST idl;
|
||||||
char *append = 0;
|
|
||||||
|
|
||||||
int x = 2;
|
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)
|
if (g_exec_flags.all_user_var)
|
||||||
{
|
{
|
||||||
x = 4;
|
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);
|
validate_filename(out);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue