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);
|
||||
free(dlg);
|
||||
|
||||
char str[512];
|
||||
extern const char *NSIS_VERSION;
|
||||
if (line.getnumtokens()==a+1)
|
||||
lstrcpy(str, line.gettoken_str(a));
|
||||
else
|
||||
wsprintf(str, "Nullsoft Install System %s", NSIS_VERSION);
|
||||
if (trim) {
|
||||
char str[512];
|
||||
extern const char *NSIS_VERSION;
|
||||
if (line.getnumtokens()==a+1 && line.gettoken_str(a)[0])
|
||||
lstrcpy(str, line.gettoken_str(a));
|
||||
else
|
||||
wsprintf(str, "Nullsoft Install System %s", NSIS_VERSION);
|
||||
|
||||
switch (trim) {
|
||||
case 1: td.LTrimToString(IDC_VERSTR, str, 4); break;
|
||||
case 2: td.RTrimToString(IDC_VERSTR, str, 4); break;
|
||||
case 3: td.CTrimToString(IDC_VERSTR, str, 4); break;
|
||||
switch (trim) {
|
||||
case 1: td.LTrimToString(IDC_VERSTR, str, 4); break;
|
||||
case 2: td.RTrimToString(IDC_VERSTR, str, 4); break;
|
||||
case 3: td.CTrimToString(IDC_VERSTR, str, 4); break;
|
||||
}
|
||||
}
|
||||
|
||||
DWORD dwSize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue