another 8 bytes saved

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1178 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
justin1014 2002-09-25 03:14:53 +00:00
parent 04adc90a1f
commit 0728c9b4c8

View file

@ -114,8 +114,7 @@ int NSISCALL ExecuteCodeSegment(int pos, HWND hwndProgress)
{
extern int progress_bar_pos, progress_bar_len;
progress_bar_pos+=rv;
progress_bar_len+=(!progress_bar_len);
SendMessage(hwndProgress,PBM_SETPOS,MulDiv(progress_bar_pos,30000,progress_bar_len),0);
SendMessage(hwndProgress,PBM_SETPOS,MulDiv(progress_bar_pos,30000,progress_bar_len+!progress_bar_len),0);
}
}
return 0;