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
79d2f76b
Commit
79d2f76b
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: Only insert entries into listbox if property value matches.
parent
f3bcc0c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
dialog.c
dlls/msi/dialog.c
+10
-3
No files found.
dlls/msi/dialog.c
View file @
79d2f76b
...
...
@@ -2124,7 +2124,7 @@ static UINT msi_listbox_add_item( MSIRECORD *rec, LPVOID param )
return
ERROR_SUCCESS
;
}
static
UINT
msi_listbox_add_items
(
struct
msi_listbox_info
*
info
)
static
UINT
msi_listbox_add_items
(
struct
msi_listbox_info
*
info
,
LPCWSTR
property
)
{
UINT
r
;
MSIQUERY
*
view
=
NULL
;
...
...
@@ -2133,10 +2133,12 @@ static UINT msi_listbox_add_items( struct msi_listbox_info *info )
static
const
WCHAR
query
[]
=
{
'S'
,
'E'
,
'L'
,
'E'
,
'C'
,
'T'
,
' '
,
'*'
,
' '
,
'F'
,
'R'
,
'O'
,
'M'
,
' '
,
'`'
,
'L'
,
'i'
,
's'
,
't'
,
'B'
,
'o'
,
'x'
,
'`'
,
' '
,
'W'
,
'H'
,
'E'
,
'R'
,
'E'
,
' '
,
'`'
,
'P'
,
'r'
,
'o'
,
'p'
,
'e'
,
'r'
,
't'
,
'y'
,
'`'
,
' '
,
'='
,
' '
,
'\''
,
'%'
,
's'
,
'\''
,
' '
,
'O'
,
'R'
,
'D'
,
'E'
,
'R'
,
' '
,
'B'
,
'Y'
,
' '
,
'`'
,
'O'
,
'r'
,
'd'
,
'e'
,
'r'
,
'`'
,
0
};
r
=
MSI_OpenQuery
(
info
->
dialog
->
package
->
db
,
&
view
,
query
);
r
=
MSI_OpenQuery
(
info
->
dialog
->
package
->
db
,
&
view
,
query
,
property
);
if
(
r
!=
ERROR_SUCCESS
)
return
r
;
...
...
@@ -2176,6 +2178,7 @@ static UINT msi_dialog_list_box( msi_dialog *dialog, MSIRECORD *rec )
struct
msi_listbox_info
*
info
;
msi_control
*
control
;
DWORD
style
;
LPCWSTR
prop
;
info
=
msi_alloc
(
sizeof
*
info
);
if
(
!
info
)
...
...
@@ -2188,6 +2191,9 @@ static UINT msi_dialog_list_box( msi_dialog *dialog, MSIRECORD *rec )
control
->
handler
=
msi_dialog_listbox_handler
;
prop
=
MSI_RecordGetString
(
rec
,
9
);
control
->
property
=
msi_dialog_dup_property
(
dialog
,
prop
,
FALSE
);
/* subclass */
info
->
dialog
=
dialog
;
info
->
hwnd
=
control
->
hwnd
;
...
...
@@ -2196,7 +2202,8 @@ static UINT msi_dialog_list_box( msi_dialog *dialog, MSIRECORD *rec )
(
LONG_PTR
)
MSIListBox_WndProc
);
SetPropW
(
control
->
hwnd
,
szButtonData
,
info
);
msi_listbox_add_items
(
info
);
if
(
control
->
property
)
msi_listbox_add_items
(
info
,
control
->
property
);
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