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
5e37c1a2
Commit
5e37c1a2
authored
Jun 07, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Revert
8321276c
.
parent
ddb25cd8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
70 deletions
+1
-70
dialog.c
dlls/msi/dialog.c
+1
-70
No files found.
dlls/msi/dialog.c
View file @
5e37c1a2
...
...
@@ -899,38 +899,6 @@ static UINT msi_dialog_control_event( MSIRECORD *rec, LPVOID param )
return
ERROR_SUCCESS
;
}
struct
rec_list
{
struct
list
entry
;
MSIRECORD
*
rec
;
};
static
UINT
add_rec_to_list
(
MSIRECORD
*
rec
,
LPVOID
param
)
{
struct
rec_list
*
add_rec
;
struct
list
*
records
=
param
;
msiobj_addref
(
&
rec
->
hdr
);
add_rec
=
msi_alloc
(
sizeof
(
*
add_rec
)
);
if
(
!
add_rec
)
{
msiobj_release
(
&
rec
->
hdr
);
return
ERROR_OUTOFMEMORY
;
}
add_rec
->
rec
=
rec
;
list_add_tail
(
records
,
&
add_rec
->
entry
);
return
ERROR_SUCCESS
;
}
static
inline
void
remove_rec_from_list
(
struct
rec_list
*
rec_entry
)
{
msiobj_release
(
&
rec_entry
->
rec
->
hdr
);
list_remove
(
&
rec_entry
->
entry
);
msi_free
(
rec_entry
);
}
static
UINT
msi_dialog_button_handler
(
msi_dialog
*
dialog
,
msi_control
*
control
,
WPARAM
param
)
{
static
const
WCHAR
query
[]
=
{
...
...
@@ -940,15 +908,11 @@ static UINT msi_dialog_button_handler( msi_dialog *dialog, msi_control *control,
'`'
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'_'
,
'`'
,
' '
,
'='
,
' '
,
'\''
,
'%'
,
's'
,
'\''
,
' '
,
'O'
,
'R'
,
'D'
,
'E'
,
'R'
,
' '
,
'B'
,
'Y'
,
' '
,
'`'
,
'O'
,
'r'
,
'd'
,
'e'
,
'r'
,
'i'
,
'n'
,
'g'
,
'`'
,
0
};
MSIQUERY
*
view
=
NULL
;
struct
rec_list
*
rec_entry
,
*
next
;
struct
list
events
;
UINT
r
;
if
(
HIWORD
(
param
)
!=
BN_CLICKED
)
return
ERROR_SUCCESS
;
list_init
(
&
events
);
r
=
MSI_OpenQuery
(
dialog
->
package
->
db
,
&
view
,
query
,
dialog
->
name
,
control
->
name
);
if
(
r
!=
ERROR_SUCCESS
)
{
...
...
@@ -956,41 +920,8 @@ static UINT msi_dialog_button_handler( msi_dialog *dialog, msi_control *control,
return
0
;
}
r
=
MSI_IterateRecords
(
view
,
0
,
add_rec_to_list
,
&
events
);
r
=
MSI_IterateRecords
(
view
,
0
,
msi_dialog_control_event
,
dialog
);
msiobj_release
(
&
view
->
hdr
);
if
(
r
!=
ERROR_SUCCESS
)
goto
done
;
/* handle all SetProperty events first */
LIST_FOR_EACH_ENTRY_SAFE
(
rec_entry
,
next
,
&
events
,
struct
rec_list
,
entry
)
{
LPCWSTR
event
=
MSI_RecordGetString
(
rec_entry
->
rec
,
3
);
if
(
event
[
0
]
!=
'['
)
continue
;
r
=
msi_dialog_control_event
(
rec_entry
->
rec
,
dialog
);
remove_rec_from_list
(
rec_entry
);
if
(
r
!=
ERROR_SUCCESS
)
goto
done
;
}
/* handle all other events */
LIST_FOR_EACH_ENTRY_SAFE
(
rec_entry
,
next
,
&
events
,
struct
rec_list
,
entry
)
{
r
=
msi_dialog_control_event
(
rec_entry
->
rec
,
dialog
);
remove_rec_from_list
(
rec_entry
);
if
(
r
!=
ERROR_SUCCESS
)
goto
done
;
}
done:
LIST_FOR_EACH_ENTRY_SAFE
(
rec_entry
,
next
,
&
events
,
struct
rec_list
,
entry
)
{
remove_rec_from_list
(
rec_entry
);
}
return
r
;
}
...
...
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