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
2666294f
Commit
2666294f
authored
Mar 05, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Properly update the UI in the DuplicateFiles and RemoveDuplicateFiles actions.
parent
3c36d9d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
files.c
dlls/msi/files.c
+13
-2
No files found.
dlls/msi/files.c
View file @
2666294f
...
...
@@ -386,6 +386,7 @@ static UINT ITERATE_DuplicateFiles(MSIRECORD *row, LPVOID param)
LPWSTR
dest
;
LPCWSTR
file_key
,
component
;
MSICOMPONENT
*
comp
;
MSIRECORD
*
uirow
;
MSIFILE
*
file
;
component
=
MSI_RecordGetString
(
row
,
2
);
...
...
@@ -432,7 +433,12 @@ static UINT ITERATE_DuplicateFiles(MSIRECORD *row, LPVOID param)
FIXME
(
"We should track these duplicate files as well
\n
"
);
msi_file_update_ui
(
package
,
file
,
szDuplicateFiles
);
uirow
=
MSI_CreateRecord
(
9
);
MSI_RecordSetStringW
(
uirow
,
1
,
MSI_RecordGetString
(
row
,
1
)
);
MSI_RecordSetInteger
(
uirow
,
6
,
file
->
FileSize
);
MSI_RecordSetStringW
(
uirow
,
9
,
MSI_RecordGetString
(
row
,
5
)
);
ui_actiondata
(
package
,
szDuplicateFiles
,
uirow
);
msiobj_release
(
&
uirow
->
hdr
);
msi_free
(
dest
);
return
ERROR_SUCCESS
;
...
...
@@ -462,6 +468,7 @@ static UINT ITERATE_RemoveDuplicateFiles( MSIRECORD *row, LPVOID param )
LPWSTR
dest
;
LPCWSTR
file_key
,
component
;
MSICOMPONENT
*
comp
;
MSIRECORD
*
uirow
;
MSIFILE
*
file
;
component
=
MSI_RecordGetString
(
row
,
2
);
...
...
@@ -505,7 +512,11 @@ static UINT ITERATE_RemoveDuplicateFiles( MSIRECORD *row, LPVOID param )
WARN
(
"Failed to delete duplicate file %s (%u)
\n
"
,
debugstr_w
(
dest
),
GetLastError
());
}
msi_file_update_ui
(
package
,
file
,
szRemoveDuplicateFiles
);
uirow
=
MSI_CreateRecord
(
9
);
MSI_RecordSetStringW
(
uirow
,
1
,
MSI_RecordGetString
(
row
,
1
)
);
MSI_RecordSetStringW
(
uirow
,
9
,
MSI_RecordGetString
(
row
,
5
)
);
ui_actiondata
(
package
,
szRemoveDuplicateFiles
,
uirow
);
msiobj_release
(
&
uirow
->
hdr
);
msi_free
(
dest
);
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