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
0713f098
Commit
0713f098
authored
Jun 24, 2005
by
Aric Stewart
Committed by
Alexandre Julliard
Jun 24, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly handle -1 as a registry key root.
parent
9a9f4cda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
action.c
dlls/msi/action.c
+20
-6
No files found.
dlls/msi/action.c
View file @
0713f098
...
...
@@ -1700,12 +1700,11 @@ static UINT ITERATE_CostFinalizeConditions(MSIRECORD *row, LPVOID param)
LPCWSTR
Condition
;
Condition
=
MSI_RecordGetString
(
row
,
3
);
if
(
MSI_EvaluateConditionW
(
package
,
Condition
)
==
MSICONDITION_TRUE
)
if
(
MSI_EvaluateConditionW
(
package
,
Condition
)
==
MSICONDITION_TRUE
)
{
int
level
=
MSI_RecordGetInteger
(
row
,
2
);
TRACE
(
"Reseting feature %s to level %i
\n
"
,
debugstr_w
(
Feature
),
level
);
TRACE
(
"Reseting feature %s to level %i
\n
"
,
debugstr_w
(
Feature
),
level
);
package
->
features
[
feature_index
].
Level
=
level
;
}
}
...
...
@@ -1875,8 +1874,6 @@ static UINT ACTION_CostFinalize(MSIPACKAGE *package)
return
SetFeatureStates
(
package
);
}
/* OK this value is "interpreted" and then formatted based on the
first few characters */
static
LPSTR
parse_value
(
MSIPACKAGE
*
package
,
LPCWSTR
value
,
DWORD
*
type
,
...
...
@@ -2056,6 +2053,23 @@ static UINT ITERATE_WriteRegistryValues(MSIRECORD *row, LPVOID param)
/* get the root key */
switch
(
root
)
{
case
-
1
:
{
static
const
WCHAR
szALLUSER
[]
=
{
'A'
,
'L'
,
'L'
,
'U'
,
'S'
,
'E'
,
'R'
,
'S'
,
0
};
LPWSTR
all_users
=
load_dynamic_property
(
package
,
szALLUSER
,
NULL
);
if
(
all_users
&&
all_users
[
0
]
==
'1'
)
{
root_key
=
HKEY_LOCAL_MACHINE
;
szRoot
=
szHLM
;
}
else
{
root_key
=
HKEY_CURRENT_USER
;
szRoot
=
szHCU
;
}
HeapFree
(
GetProcessHeap
(),
0
,
all_users
);
}
break
;
case
0
:
root_key
=
HKEY_CLASSES_ROOT
;
szRoot
=
szHCR
;
break
;
...
...
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