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
9024a88d
Commit
9024a88d
authored
Oct 05, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Oct 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Make msi_dialog_dup_property return a copy of the property if the property is empty.
parent
1a922b6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
22 deletions
+12
-22
dialog.c
dlls/msi/dialog.c
+12
-22
No files found.
dlls/msi/dialog.c
View file @
9024a88d
...
...
@@ -217,13 +217,18 @@ static LPWSTR msi_get_deformatted_field( MSIPACKAGE *package, MSIRECORD *rec, in
static
LPWSTR
msi_dialog_dup_property
(
msi_dialog
*
dialog
,
LPCWSTR
property
,
BOOL
indirect
)
{
LPWSTR
prop
=
NULL
;
if
(
!
property
)
return
NULL
;
if
(
indirect
)
return
msi_dup_property
(
dialog
->
package
,
property
);
prop
=
msi_dup_property
(
dialog
->
package
,
property
);
if
(
!
prop
)
prop
=
strdupW
(
property
);
return
strdupW
(
property
)
;
return
prop
;
}
msi_dialog
*
msi_dialog_get_parent
(
msi_dialog
*
dialog
)
...
...
@@ -1469,10 +1474,7 @@ static void msi_dialog_update_pathedit( msi_dialog *dialog, msi_control *control
indirect
=
control
->
attributes
&
msidbControlAttributesIndirect
;
prop
=
msi_dialog_dup_property
(
dialog
,
control
->
property
,
indirect
);
path
=
msi_dup_property
(
dialog
->
package
,
prop
);
if
(
!
path
)
path
=
prop
;
path
=
msi_dialog_dup_property
(
dialog
,
prop
,
TRUE
);
SetWindowTextW
(
control
->
hwnd
,
path
);
SendMessageW
(
control
->
hwnd
,
EM_SETSEL
,
0
,
-
1
);
...
...
@@ -2171,10 +2173,7 @@ static void msi_dialog_update_directory_combo( msi_dialog *dialog, msi_control *
indirect
=
control
->
attributes
&
msidbControlAttributesIndirect
;
prop
=
msi_dialog_dup_property
(
dialog
,
control
->
property
,
indirect
);
path
=
msi_dup_property
(
dialog
->
package
,
prop
);
if
(
!
path
)
path
=
prop
;
path
=
msi_dialog_dup_property
(
dialog
,
prop
,
TRUE
);
PathStripPathW
(
path
);
PathRemoveBackslashW
(
path
);
...
...
@@ -2231,10 +2230,7 @@ static void msi_dialog_update_directory_list( msi_dialog *dialog, msi_control *c
indirect
=
control
->
attributes
&
msidbControlAttributesIndirect
;
prop
=
msi_dialog_dup_property
(
dialog
,
control
->
property
,
indirect
);
path
=
msi_dup_property
(
dialog
->
package
,
prop
);
if
(
!
path
)
path
=
prop
;
path
=
msi_dialog_dup_property
(
dialog
,
prop
,
TRUE
);
lstrcpyW
(
dir_spec
,
path
);
lstrcatW
(
dir_spec
,
asterisk
);
...
...
@@ -2274,10 +2270,7 @@ UINT msi_dialog_directorylist_up( msi_dialog *dialog )
control
=
msi_dialog_find_control_by_type
(
dialog
,
szDirectoryList
);
indirect
=
control
->
attributes
&
msidbControlAttributesIndirect
;
prop
=
msi_dialog_dup_property
(
dialog
,
control
->
property
,
indirect
);
path
=
msi_dup_property
(
dialog
->
package
,
prop
);
if
(
!
path
)
path
=
prop
;
path
=
msi_dialog_dup_property
(
dialog
,
prop
,
TRUE
);
/* strip off the last directory */
ptr
=
PathFindFileNameW
(
path
);
...
...
@@ -2326,10 +2319,7 @@ static UINT msi_dialog_dirlist_handler( msi_dialog *dialog,
indirect
=
control
->
attributes
&
msidbControlAttributesIndirect
;
prop
=
msi_dialog_dup_property
(
dialog
,
control
->
property
,
indirect
);
path
=
msi_dup_property
(
dialog
->
package
,
prop
);
if
(
!
path
)
path
=
prop
;
path
=
msi_dialog_dup_property
(
dialog
,
prop
,
TRUE
);
lstrcpyW
(
new_path
,
path
);
lstrcatW
(
new_path
,
text
);
...
...
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