From 0728c9b4c8ebfa0b5785dc827c21002304e9f172 Mon Sep 17 00:00:00 2001 From: justin1014 Date: Wed, 25 Sep 2002 03:14:53 +0000 Subject: [PATCH] another 8 bytes saved git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1178 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/exec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/exehead/exec.c b/Source/exehead/exec.c index cdcfd14a..de94aaad 100644 --- a/Source/exehead/exec.c +++ b/Source/exehead/exec.c @@ -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;