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
2dbaccbe
Commit
2dbaccbe
authored
Aug 28, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Aug 29, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Update the PathEdit control in response to the DirectoryListUp event.
parent
7df64211
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
11 deletions
+30
-11
dialog.c
dlls/msi/dialog.c
+30
-11
No files found.
dlls/msi/dialog.c
View file @
2dbaccbe
...
...
@@ -197,6 +197,17 @@ static LPWSTR msi_get_deformatted_field( MSIPACKAGE *package, MSIRECORD *rec, in
return
ret
;
}
static
LPWSTR
msi_dialog_dup_property
(
msi_dialog
*
dialog
,
LPCWSTR
property
,
BOOL
indirect
)
{
if
(
!
property
)
return
NULL
;
if
(
indirect
)
return
msi_dup_property
(
dialog
->
package
,
property
);
return
strdupW
(
property
);
}
/*
* msi_dialog_get_style
*
...
...
@@ -1411,6 +1422,23 @@ static UINT msi_dialog_pathedit_handler( msi_dialog *dialog,
return
ERROR_SUCCESS
;
}
static
void
msi_dialog_update_pathedit
(
msi_dialog
*
dialog
)
{
msi_control
*
control
;
LPWSTR
prop
,
path
;
BOOL
indirect
;
control
=
msi_dialog_find_control
(
dialog
,
szPathEdit
);
indirect
=
control
->
attributes
&
msidbControlAttributesIndirect
;
prop
=
msi_dialog_dup_property
(
dialog
,
control
->
property
,
indirect
);
path
=
msi_dup_property
(
dialog
->
package
,
prop
);
SetWindowTextW
(
control
->
hwnd
,
path
);
msi_free
(
path
);
msi_free
(
prop
);
}
static
UINT
msi_dialog_pathedit_control
(
msi_dialog
*
dialog
,
MSIRECORD
*
rec
)
{
msi_control
*
control
;
...
...
@@ -1951,17 +1979,6 @@ static UINT msi_dialog_list_box( msi_dialog *dialog, MSIRECORD *rec )
/******************** Directory Combo ***************************************/
static
LPWSTR
msi_dialog_dup_property
(
msi_dialog
*
dialog
,
LPCWSTR
property
,
BOOL
indirect
)
{
if
(
!
property
)
return
NULL
;
if
(
indirect
)
return
msi_dup_property
(
dialog
->
package
,
property
);
return
strdupW
(
property
);
}
static
UINT
msi_dialog_directory_combo
(
msi_dialog
*
dialog
,
MSIRECORD
*
rec
)
{
msi_control
*
control
;
...
...
@@ -2018,6 +2035,8 @@ UINT msi_dialog_directorylist_up( msi_dialog *dialog )
MSI_SetPropertyW
(
dialog
->
package
,
prop
,
path
);
msi_dialog_update_pathedit
(
dialog
);
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