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
a17ca164
Commit
a17ca164
authored
Jun 12, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Keep assembly caches loaded until the package is destroyed.
parent
3480ccbb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
13 deletions
+7
-13
action.c
dlls/msi/action.c
+0
-1
assembly.c
dlls/msi/assembly.c
+5
-3
files.c
dlls/msi/files.c
+0
-4
package.c
dlls/msi/package.c
+2
-5
No files found.
dlls/msi/action.c
View file @
a17ca164
...
...
@@ -1017,7 +1017,6 @@ UINT msi_load_all_components( MSIPACKAGE *package )
r
=
MSI_IterateRecords
(
view
,
NULL
,
load_component
,
package
);
msiobj_release
(
&
view
->
hdr
);
msi_destroy_assembly_caches
(
package
);
return
r
;
}
...
...
dlls/msi/assembly.c
View file @
a17ca164
...
...
@@ -99,9 +99,11 @@ void msi_destroy_assembly_caches( MSIPACKAGE *package )
{
UINT
i
;
IAssemblyCache_Release
(
package
->
cache_sxs
);
package
->
cache_sxs
=
NULL
;
if
(
package
->
cache_sxs
)
{
IAssemblyCache_Release
(
package
->
cache_sxs
);
package
->
cache_sxs
=
NULL
;
}
for
(
i
=
0
;
i
<
CLR_VERSION_MAX
;
i
++
)
{
if
(
package
->
cache_net
[
i
])
...
...
dlls/msi/files.c
View file @
a17ca164
...
...
@@ -399,7 +399,6 @@ UINT ACTION_InstallFiles(MSIPACKAGE *package)
goto
done
;
}
}
msi_init_assembly_caches
(
package
);
LIST_FOR_EACH_ENTRY
(
comp
,
&
package
->
components
,
MSICOMPONENT
,
entry
)
{
comp
->
Action
=
msi_get_component_action
(
package
,
comp
);
...
...
@@ -414,7 +413,6 @@ UINT ACTION_InstallFiles(MSIPACKAGE *package)
}
}
}
msi_destroy_assembly_caches
(
package
);
done:
msi_free_media_info
(
mi
);
...
...
@@ -1309,7 +1307,6 @@ UINT ACTION_RemoveFiles( MSIPACKAGE *package )
msiobj_release
(
&
uirow
->
hdr
);
}
msi_init_assembly_caches
(
package
);
LIST_FOR_EACH_ENTRY
(
comp
,
&
package
->
components
,
MSICOMPONENT
,
entry
)
{
comp
->
Action
=
msi_get_component_action
(
package
,
comp
);
...
...
@@ -1328,6 +1325,5 @@ UINT ACTION_RemoveFiles( MSIPACKAGE *package )
remove_folder
(
folder
);
}
}
msi_destroy_assembly_caches
(
package
);
return
ERROR_SUCCESS
;
}
dlls/msi/package.c
View file @
a17ca164
...
...
@@ -344,9 +344,10 @@ static void free_package_structures( MSIPACKAGE *package )
static
void
MSI_FreePackage
(
MSIOBJECTHDR
*
arg
)
{
UINT
i
;
MSIPACKAGE
*
package
=
(
MSIPACKAGE
*
)
arg
;
msi_destroy_assembly_caches
(
package
);
if
(
package
->
dialog
)
msi_dialog_destroy
(
package
->
dialog
);
...
...
@@ -354,10 +355,6 @@ static void MSI_FreePackage( MSIOBJECTHDR *arg)
free_package_structures
(
package
);
CloseHandle
(
package
->
log_file
);
for
(
i
=
0
;
i
<
CLR_VERSION_MAX
;
i
++
)
if
(
package
->
cache_net
[
i
])
IAssemblyCache_Release
(
package
->
cache_net
[
i
]
);
if
(
package
->
cache_sxs
)
IAssemblyCache_Release
(
package
->
cache_sxs
);
if
(
package
->
delete_on_close
)
DeleteFileW
(
package
->
localfile
);
msi_free
(
package
->
localfile
);
}
...
...
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