Sleep back to normal

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2555 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-05-18 15:56:09 +00:00
parent 82cebbf365
commit 9a092cb98f

View file

@ -201,7 +201,7 @@ static int NSISCALL ExecuteEntry(entry *entry_)
{ {
int x=process_string_fromparm_toint(0); int x=process_string_fromparm_toint(0);
log_printf2("Sleep(%d)",x); log_printf2("Sleep(%d)",x);
Sleep(min(x,1)); Sleep(max(x,1));
} }
break; break;
case EW_BRINGTOFRONT: case EW_BRINGTOFRONT:
@ -238,7 +238,7 @@ static int NSISCALL ExecuteEntry(entry *entry_)
{ {
update_status_text_from_lang(LANG_OUTPUTDIR,buf1); update_status_text_from_lang(LANG_OUTPUTDIR,buf1);
mystrcpy(state_output_directory,buf1); mystrcpy(state_output_directory,buf1);
SetCurrentDirectory(state_output_directory); SetCurrentDirectory(buf1);
} }
else update_status_text_from_lang(LANG_CREATEDIR,buf1); else update_status_text_from_lang(LANG_CREATEDIR,buf1);
{ {