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
52f3d5be
Commit
52f3d5be
authored
Apr 23, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Remove child folders first in the RemoveFolders action.
parent
2e5bf9ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
action.c
dlls/msi/action.c
+15
-2
No files found.
dlls/msi/action.c
View file @
52f3d5be
...
...
@@ -884,6 +884,20 @@ static UINT ACTION_CreateFolders(MSIPACKAGE *package)
return
rc
;
}
static
void
remove_persistent_folder
(
MSIFOLDER
*
folder
)
{
FolderList
*
fl
;
LIST_FOR_EACH_ENTRY
(
fl
,
&
folder
->
children
,
FolderList
,
entry
)
{
remove_persistent_folder
(
fl
->
folder
);
}
if
(
folder
->
persistent
&&
folder
->
State
!=
FOLDER_STATE_REMOVED
)
{
if
(
RemoveDirectoryW
(
folder
->
ResolvedTarget
))
folder
->
State
=
FOLDER_STATE_REMOVED
;
}
}
static
UINT
ITERATE_RemoveFolders
(
MSIRECORD
*
row
,
LPVOID
param
)
{
MSIPACKAGE
*
package
=
param
;
...
...
@@ -927,9 +941,8 @@ static UINT ITERATE_RemoveFolders( MSIRECORD *row, LPVOID param )
msi_ui_actiondata
(
package
,
szRemoveFolders
,
uirow
);
msiobj_release
(
&
uirow
->
hdr
);
RemoveDirectoryW
(
full_path
);
folder
=
msi_get_loaded_folder
(
package
,
dir
);
folder
->
State
=
FOLDER_STATE_REMOVED
;
remove_persistent_folder
(
folder
)
;
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