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
4759dcc3
Commit
4759dcc3
authored
Jul 26, 2013
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Subscribe to all control events instead of just the first.
parent
ec765090
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
16 deletions
+30
-16
dialog.c
dlls/msi/dialog.c
+30
-16
No files found.
dlls/msi/dialog.c
View file @
4759dcc3
...
...
@@ -735,27 +735,41 @@ static void event_subscribe( msi_dialog *dialog, const WCHAR *event, const WCHAR
list_add_tail
(
&
dialog
->
package
->
subscriptions
,
&
sub
->
entry
);
}
struct
dialog_control
{
msi_dialog
*
dialog
;
const
WCHAR
*
control
;
};
static
UINT
map_event
(
MSIRECORD
*
row
,
void
*
param
)
{
struct
dialog_control
*
dc
=
param
;
const
WCHAR
*
event
=
MSI_RecordGetString
(
row
,
3
);
const
WCHAR
*
attribute
=
MSI_RecordGetString
(
row
,
4
);
event_subscribe
(
dc
->
dialog
,
event
,
dc
->
control
,
attribute
);
return
ERROR_SUCCESS
;
}
static
void
dialog_map_events
(
msi_dialog
*
dialog
,
const
WCHAR
*
control
)
{
static
const
WCHAR
Query
[]
=
{
'S'
,
'E'
,
'L'
,
'E'
,
'C'
,
'T'
,
' '
,
'*'
,
' '
,
'F'
,
'R'
,
'O'
,
'M'
,
' '
,
static
const
WCHAR
queryW
[]
=
{
'S'
,
'E'
,
'L'
,
'E'
,
'C'
,
'T'
,
' '
,
'*'
,
' '
,
'F'
,
'R'
,
'O'
,
'M'
,
' '
,
'`'
,
'E'
,
'v'
,
'e'
,
'n'
,
't'
,
'M'
,
'a'
,
'p'
,
'p'
,
'i'
,
'n'
,
'g'
,
'`'
,
' '
,
'W'
,
'H'
,
'E'
,
'R'
,
'E'
,
' '
,
'`'
,
'D'
,
'i'
,
'a'
,
'l'
,
'o'
,
'g'
,
'_'
,
'`'
,
' '
,
'='
,
' '
,
'\''
,
'%'
,
's'
,
'\''
,
' '
,
'A'
,
'N'
,
'D'
,
' '
,
'`'
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'_'
,
'`'
,
' '
,
'='
,
' '
,
'\''
,
'%'
,
's'
,
'\''
,
0
'W'
,
'H'
,
'E'
,
'R'
,
'E'
,
' '
,
'`'
,
'D'
,
'i'
,
'a'
,
'l'
,
'o'
,
'g'
,
'_'
,
'`'
,
' '
,
'='
,
' '
,
'\''
,
'%'
,
's'
,
'\''
,
' '
,
'A'
,
'N'
,
'D'
,
' '
,
'`'
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'_'
,
'`'
,
' '
,
'='
,
' '
,
'\''
,
'%'
,
's'
,
'\''
,
0
};
MSIQUERY
*
view
;
struct
dialog_control
dialog_control
=
{
dialog
,
control
};
MSIRECORD
*
row
;
LPCWSTR
event
,
attribute
;
row
=
MSI_QueryGetRecord
(
dialog
->
package
->
db
,
Query
,
dialog
->
name
,
control
);
if
(
!
row
)
return
;
event
=
MSI_RecordGetString
(
row
,
3
);
attribute
=
MSI_RecordGetString
(
row
,
4
);
event_subscribe
(
dialog
,
event
,
control
,
attribute
);
msiobj_release
(
&
row
->
hdr
);
if
(
!
MSI_OpenQuery
(
dialog
->
package
->
db
,
&
view
,
queryW
,
dialog
->
name
,
control
))
{
MSI_IterateRecords
(
view
,
NULL
,
map_event
,
&
dialog_control
);
msiobj_release
(
&
view
->
hdr
);
}
}
/* everything except radio buttons */
...
...
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