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
df2df89d
Commit
df2df89d
authored
May 24, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
May 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix the font actions to revert components to the installed state during rollback.
parent
fe2b4b1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
font.c
dlls/msi/font.c
+16
-14
No files found.
dlls/msi/font.c
View file @
df2df89d
...
...
@@ -207,6 +207,7 @@ static UINT ITERATE_RegisterFonts(MSIRECORD *row, LPVOID param)
LPWSTR
name
;
LPCWSTR
filename
;
MSIFILE
*
file
;
MSICOMPONENT
*
comp
;
HKEY
hkey1
,
hkey2
;
MSIRECORD
*
uirow
;
LPWSTR
uipath
,
p
;
...
...
@@ -215,19 +216,19 @@ static UINT ITERATE_RegisterFonts(MSIRECORD *row, LPVOID param)
file
=
msi_get_loaded_file
(
package
,
filename
);
if
(
!
file
)
{
ERR
(
"Unable to load file
\n
"
);
WARN
(
"unable to find file %s
\n
"
,
debugstr_w
(
file
->
File
)
);
return
ERROR_SUCCESS
;
}
if
(
!
file
->
Component
->
Enabled
)
comp
=
msi_get_loaded_component
(
package
,
file
->
Component
->
Component
);
if
(
!
comp
)
{
TRACE
(
"component is disabled
\n
"
);
WARN
(
"unable to find component %s
\n
"
,
debugstr_w
(
comp
->
Component
)
);
return
ERROR_SUCCESS
;
}
if
(
file
->
Component
->
ActionRequest
!=
INSTALLSTATE_LOCAL
)
comp
->
Action
=
msi_get_component_action
(
package
,
comp
);
if
(
comp
->
Action
!=
INSTALLSTATE_LOCAL
)
{
TRACE
(
"
Component not scheduled for installation
\n
"
);
TRACE
(
"
component not scheduled for installation %s
\n
"
,
debugstr_w
(
comp
->
Component
)
);
return
ERROR_SUCCESS
;
}
...
...
@@ -291,6 +292,7 @@ static UINT ITERATE_UnregisterFonts( MSIRECORD *row, LPVOID param )
LPWSTR
name
;
LPCWSTR
filename
;
MSIFILE
*
file
;
MSICOMPONENT
*
comp
;
HKEY
hkey1
,
hkey2
;
MSIRECORD
*
uirow
;
LPWSTR
uipath
,
p
;
...
...
@@ -299,19 +301,19 @@ static UINT ITERATE_UnregisterFonts( MSIRECORD *row, LPVOID param )
file
=
msi_get_loaded_file
(
package
,
filename
);
if
(
!
file
)
{
ERR
(
"Unable to load file
\n
"
);
WARN
(
"unable to find file %s
\n
"
,
debugstr_w
(
file
->
File
)
);
return
ERROR_SUCCESS
;
}
if
(
!
file
->
Component
->
Enabled
)
comp
=
msi_get_loaded_component
(
package
,
file
->
Component
->
Component
);
if
(
!
comp
)
{
TRACE
(
"component is disabled
\n
"
);
WARN
(
"unable to find component %s
\n
"
,
debugstr_w
(
comp
->
Component
)
);
return
ERROR_SUCCESS
;
}
if
(
file
->
Component
->
ActionRequest
!=
INSTALLSTATE_ABSENT
)
comp
->
Action
=
msi_get_component_action
(
package
,
comp
);
if
(
comp
->
Action
!=
INSTALLSTATE_ABSENT
)
{
TRACE
(
"
Component not scheduled for removal
\n
"
);
TRACE
(
"
component not scheduled for removal %s
\n
"
,
debugstr_w
(
comp
->
Component
)
);
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