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
4e3f6eda
Commit
4e3f6eda
authored
Aug 31, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Sep 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Provide the control to the dialog_update function for the case
when the control isn't attached to the dialog yet.
parent
7e865905
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
dialog.c
dlls/msi/dialog.c
+11
-11
No files found.
dlls/msi/dialog.c
View file @
4e3f6eda
...
...
@@ -1418,15 +1418,14 @@ static UINT msi_dialog_pathedit_handler( msi_dialog *dialog,
return
ERROR_SUCCESS
;
}
static
void
msi_dialog_update_pathedit
(
msi_dialog
*
dialog
)
static
void
msi_dialog_update_pathedit
(
msi_dialog
*
dialog
,
msi_control
*
control
)
{
msi_control
*
control
;
LPWSTR
prop
,
path
;
BOOL
indirect
;
control
=
msi_dialog_find_control
(
dialog
,
szPathEdit
);
if
(
!
control
)
if
(
!
control
&&
!
(
control
=
msi_dialog_find_control
(
dialog
,
szPathEdit
)
))
return
;
indirect
=
control
->
attributes
&
msidbControlAttributesIndirect
;
prop
=
msi_dialog_dup_property
(
dialog
,
control
->
property
,
indirect
);
...
...
@@ -1450,7 +1449,7 @@ static UINT msi_dialog_pathedit_control( msi_dialog *dialog, MSIRECORD *rec )
prop
=
MSI_RecordGetString
(
rec
,
9
);
control
->
property
=
msi_dialog_dup_property
(
dialog
,
prop
,
FALSE
);
msi_dialog_update_pathedit
(
dialog
);
msi_dialog_update_pathedit
(
dialog
,
control
);
return
ERROR_SUCCESS
;
}
...
...
@@ -1963,13 +1962,14 @@ static UINT msi_dialog_list_box( msi_dialog *dialog, MSIRECORD *rec )
/******************** Directory Combo ***************************************/
static
void
msi_dialog_update_directory_combo
(
msi_dialog
*
dialog
)
static
void
msi_dialog_update_directory_combo
(
msi_dialog
*
dialog
,
msi_control
*
control
)
{
msi_control
*
control
;
LPWSTR
prop
,
path
;
BOOL
indirect
;
control
=
msi_dialog_find_control
(
dialog
,
szDirectoryCombo
);
if
(
!
control
&&
!
(
control
=
msi_dialog_find_control
(
dialog
,
szDirectoryCombo
)))
return
;
indirect
=
control
->
attributes
&
msidbControlAttributesIndirect
;
prop
=
msi_dialog_dup_property
(
dialog
,
control
->
property
,
indirect
);
path
=
msi_dup_property
(
dialog
->
package
,
prop
);
...
...
@@ -2001,7 +2001,7 @@ static UINT msi_dialog_directory_combo( msi_dialog *dialog, MSIRECORD *rec )
prop
=
MSI_RecordGetString
(
rec
,
9
);
control
->
property
=
msi_dialog_dup_property
(
dialog
,
prop
,
FALSE
);
msi_dialog_update_directory_combo
(
dialog
);
msi_dialog_update_directory_combo
(
dialog
,
control
);
return
ERROR_SUCCESS
;
}
...
...
@@ -2027,8 +2027,8 @@ UINT msi_dialog_directorylist_up( msi_dialog *dialog )
MSI_SetPropertyW
(
dialog
->
package
,
prop
,
path
);
msi_dialog_update_directory_combo
(
dialog
);
msi_dialog_update_pathedit
(
dialog
);
msi_dialog_update_directory_combo
(
dialog
,
NULL
);
msi_dialog_update_pathedit
(
dialog
,
NULL
);
msi_free
(
path
);
msi_free
(
prop
);
...
...
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