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
20d98e81
Commit
20d98e81
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 msi_dialog_dup_property where appropriate.
parent
2a09d4f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
dialog.c
dlls/msi/dialog.c
+6
-12
No files found.
dlls/msi/dialog.c
View file @
20d98e81
...
...
@@ -1396,18 +1396,14 @@ static LPWSTR msi_get_window_text( HWND hwnd )
static
UINT
msi_dialog_pathedit_handler
(
msi_dialog
*
dialog
,
msi_control
*
control
,
WPARAM
param
)
{
LP
CWSTR
prop
;
LPWSTR
buf
,
indirect
=
NULL
;
LP
WSTR
buf
,
prop
;
BOOL
indirect
;
if
(
HIWORD
(
param
)
!=
EN_KILLFOCUS
)
return
ERROR_SUCCESS
;
prop
=
control
->
property
;
if
(
control
->
attributes
&
msidbControlAttributesIndirect
)
{
indirect
=
msi_dup_property
(
dialog
->
package
,
control
->
property
);
prop
=
indirect
;
}
indirect
=
control
->
attributes
&
msidbControlAttributesIndirect
;
prop
=
msi_dialog_dup_property
(
dialog
,
control
->
property
,
indirect
);
/* FIXME: verify the new path */
buf
=
msi_get_window_text
(
control
->
hwnd
);
...
...
@@ -1417,7 +1413,7 @@ static UINT msi_dialog_pathedit_handler( msi_dialog *dialog,
debugstr_w
(
prop
));
msi_free
(
buf
);
msi_free
(
indirect
);
msi_free
(
prop
);
return
ERROR_SUCCESS
;
}
...
...
@@ -1449,10 +1445,8 @@ static UINT msi_dialog_pathedit_control( msi_dialog *dialog, MSIRECORD *rec )
WS_BORDER
|
WS_TABSTOP
);
control
->
handler
=
msi_dialog_pathedit_handler
;
control
->
attributes
=
MSI_RecordGetInteger
(
rec
,
8
);
prop
=
MSI_RecordGetString
(
rec
,
9
);
if
(
prop
)
control
->
property
=
strdupW
(
prop
);
control
->
property
=
msi_dialog_dup_property
(
dialog
,
prop
,
FALSE
);
msi_dialog_update_pathedit
(
dialog
);
...
...
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