Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2a09d4f6
Commit
2a09d4f6
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: Use the respective update functions when creating the Browse dialog control.
parent
6320d0ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
28 deletions
+3
-28
dialog.c
dlls/msi/dialog.c
+3
-28
No files found.
dlls/msi/dialog.c
View file @
2a09d4f6
...
...
@@ -1434,6 +1434,7 @@ static void msi_dialog_update_pathedit( msi_dialog *dialog )
path
=
msi_dup_property
(
dialog
->
package
,
prop
);
SetWindowTextW
(
control
->
hwnd
,
path
);
SendMessageW
(
control
->
hwnd
,
EM_SETSEL
,
0
,
-
1
);
msi_free
(
path
);
msi_free
(
prop
);
...
...
@@ -1443,7 +1444,6 @@ static UINT msi_dialog_pathedit_control( msi_dialog *dialog, MSIRECORD *rec )
{
msi_control
*
control
;
LPCWSTR
prop
;
LPWSTR
val
,
indirect
=
NULL
;
control
=
msi_dialog_add_control
(
dialog
,
rec
,
szEdit
,
WS_BORDER
|
WS_TABSTOP
);
...
...
@@ -1454,19 +1454,7 @@ static UINT msi_dialog_pathedit_control( msi_dialog *dialog, MSIRECORD *rec )
if
(
prop
)
control
->
property
=
strdupW
(
prop
);
if
(
control
->
attributes
&
msidbControlAttributesIndirect
)
{
indirect
=
msi_dup_property
(
dialog
->
package
,
control
->
property
);
prop
=
indirect
;
}
val
=
msi_dup_property
(
dialog
->
package
,
prop
);
SetWindowTextW
(
control
->
hwnd
,
val
);
SendMessageW
(
control
->
hwnd
,
EM_SETSEL
,
0
,
-
1
);
msi_free
(
val
);
msi_free
(
indirect
);
msi_dialog_update_pathedit
(
dialog
);
return
ERROR_SUCCESS
;
}
...
...
@@ -2003,8 +1991,6 @@ static void msi_dialog_update_directory_combo( msi_dialog *dialog )
static
UINT
msi_dialog_directory_combo
(
msi_dialog
*
dialog
,
MSIRECORD
*
rec
)
{
msi_control
*
control
;
LPWSTR
path
,
propval
;
BOOL
indirect
;
LPCWSTR
prop
;
DWORD
style
;
...
...
@@ -2019,19 +2005,8 @@ 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
);
indirect
=
control
->
attributes
&
msidbControlAttributesIndirect
;
propval
=
msi_dialog_dup_property
(
dialog
,
prop
,
indirect
);
path
=
msi_dup_property
(
dialog
->
package
,
propval
);
PathStripPathW
(
path
);
PathRemoveBackslashW
(
path
);
/* FIXME: Add whole directory structure to combo box */
SendMessageW
(
control
->
hwnd
,
CB_ADDSTRING
,
0
,
(
LPARAM
)
path
);
SendMessageW
(
control
->
hwnd
,
CB_SETCURSEL
,
0
,
0
);
msi_dialog_update_directory_combo
(
dialog
);
msi_free
(
path
);
msi_free
(
propval
);
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