BrandingText /TRIM* "" will now use the default string too
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1471 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
31bfb9e0a3
commit
a395359644
1 changed files with 12 additions and 10 deletions
|
@ -1807,17 +1807,19 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
|
||||||
CDialogTemplate td(dlg);
|
CDialogTemplate td(dlg);
|
||||||
free(dlg);
|
free(dlg);
|
||||||
|
|
||||||
char str[512];
|
if (trim) {
|
||||||
extern const char *NSIS_VERSION;
|
char str[512];
|
||||||
if (line.getnumtokens()==a+1)
|
extern const char *NSIS_VERSION;
|
||||||
lstrcpy(str, line.gettoken_str(a));
|
if (line.getnumtokens()==a+1 && line.gettoken_str(a)[0])
|
||||||
else
|
lstrcpy(str, line.gettoken_str(a));
|
||||||
wsprintf(str, "Nullsoft Install System %s", NSIS_VERSION);
|
else
|
||||||
|
wsprintf(str, "Nullsoft Install System %s", NSIS_VERSION);
|
||||||
|
|
||||||
switch (trim) {
|
switch (trim) {
|
||||||
case 1: td.LTrimToString(IDC_VERSTR, str, 4); break;
|
case 1: td.LTrimToString(IDC_VERSTR, str, 4); break;
|
||||||
case 2: td.RTrimToString(IDC_VERSTR, str, 4); break;
|
case 2: td.RTrimToString(IDC_VERSTR, str, 4); break;
|
||||||
case 3: td.CTrimToString(IDC_VERSTR, str, 4); break;
|
case 3: td.CTrimToString(IDC_VERSTR, str, 4); break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DWORD dwSize;
|
DWORD dwSize;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue