Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6c7d0993
Commit
6c7d0993
authored
May 15, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
May 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add support for the ProgressAddition progress message subtype.
parent
022915f7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
dialog.c
dlls/msi/dialog.c
+4
-2
No files found.
dlls/msi/dialog.c
View file @
6c7d0993
...
...
@@ -644,11 +644,11 @@ void msi_dialog_handle_event( msi_dialog* dialog, LPCWSTR control,
TRACE
(
"progress: func %u val1 %u val2 %u
\n
"
,
func
,
val1
,
val2
);
units
=
val1
/
512
;
switch
(
func
)
{
case
0
:
/* init */
SendMessageW
(
ctrl
->
hwnd
,
PBM_SETRANGE
,
0
,
MAKELPARAM
(
0
,
100
)
);
units
=
val1
/
512
;
if
(
val2
)
{
ctrl
->
progress_max
=
units
?
units
:
100
;
...
...
@@ -667,7 +667,6 @@ void msi_dialog_handle_event( msi_dialog* dialog, LPCWSTR control,
case
1
:
/* FIXME: not sure what this is supposed to do */
break
;
case
2
:
/* move */
units
=
val1
/
512
;
if
(
ctrl
->
progress_backwards
)
{
if
(
units
>=
ctrl
->
progress_current
)
ctrl
->
progress_current
-=
units
;
...
...
@@ -680,6 +679,9 @@ void msi_dialog_handle_event( msi_dialog* dialog, LPCWSTR control,
}
SendMessageW
(
ctrl
->
hwnd
,
PBM_SETPOS
,
MulDiv
(
100
,
ctrl
->
progress_current
,
ctrl
->
progress_max
),
0
);
break
;
case
3
:
/* add */
ctrl
->
progress_max
+=
units
;
break
;
default:
FIXME
(
"Unknown progress message %u
\n
"
,
func
);
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment