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
9afb0f39
Commit
9afb0f39
authored
Feb 06, 2007
by
Peter Oberndorfer
Committed by
Alexandre Julliard
Feb 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Store value of the property with each listbox element.
This makes sure the property is set to the right value even when order in listbox is changed.
parent
69448afd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
dialog.c
dlls/msi/dialog.c
+6
-2
No files found.
dlls/msi/dialog.c
View file @
9afb0f39
...
...
@@ -2100,13 +2100,15 @@ static UINT msi_listbox_add_item( MSIRECORD *rec, LPVOID param )
struct
msi_listbox_info
*
info
=
param
;
LPCWSTR
value
,
text
;
static
int
index
=
0
;
int
pos
;
value
=
MSI_RecordGetString
(
rec
,
3
);
text
=
MSI_RecordGetString
(
rec
,
4
);
info
->
items
[
index
]
=
strdupW
(
value
);
SendMessageW
(
info
->
hwnd
,
LB_ADDSTRING
,
0
,
(
LPARAM
)
text
);
pos
=
SendMessageW
(
info
->
hwnd
,
LB_ADDSTRING
,
0
,
(
LPARAM
)
text
);
SendMessageW
(
info
->
hwnd
,
LB_SETITEMDATA
,
pos
,
(
LPARAM
)
info
->
items
[
index
]
);
index
++
;
return
ERROR_SUCCESS
;
}
...
...
@@ -2146,15 +2148,17 @@ static UINT msi_dialog_listbox_handler( msi_dialog *dialog,
{
struct
msi_listbox_info
*
info
;
int
index
;
LPCWSTR
value
;
if
(
HIWORD
(
param
)
!=
LBN_SELCHANGE
)
return
ERROR_SUCCESS
;
info
=
GetPropW
(
control
->
hwnd
,
szButtonData
);
index
=
SendMessageW
(
control
->
hwnd
,
LB_GETCURSEL
,
0
,
0
);
value
=
(
LPCWSTR
)
SendMessageW
(
control
->
hwnd
,
LB_GETITEMDATA
,
index
,
0
);
MSI_SetPropertyW
(
info
->
dialog
->
package
,
control
->
property
,
info
->
items
[
index
]
);
control
->
property
,
value
);
msi_dialog_evaluate_control_conditions
(
info
->
dialog
);
return
ERROR_SUCCESS
;
...
...
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