6 bytes saved (made addtrailingslash return char *)

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1174 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
justin1014 2002-09-25 02:13:38 +00:00
parent 54bcb4a8e2
commit 372e1f0d11
4 changed files with 8 additions and 11 deletions

View file

@ -145,8 +145,7 @@ static BOOL NSISCALL _HandleStaticBkColor(UINT uMsg, WPARAM wParam, LPARAM lPara
#ifdef NSIS_CONFIG_LOG
void NSISCALL build_g_logfile()
{
addtrailingslash(mystrcpy(g_log_file,state_install_directory));
lstrcat(g_log_file,"install.log");
lstrcat(addtrailingslash(mystrcpy(g_log_file,state_install_directory)),"install.log");
}
#endif
@ -820,8 +819,7 @@ static BOOL CALLBACK DirProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
p=name+mystrlen(name)-mystrlen(post_str);
if (p <= name || *CharPrev(name,p)!='\\' || lstrcmpi(p,post_str))
{
addtrailingslash(name);
lstrcat(name,post_str);
lstrcat(addtrailingslash(name),post_str);
}
}