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
0de574b2
Commit
0de574b2
authored
May 10, 2007
by
James Hawkins
Committed by
Alexandre Julliard
May 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Deformat the key path before opening the key.
parent
234855f0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
appsearch.c
dlls/msi/appsearch.c
+5
-3
No files found.
dlls/msi/appsearch.c
View file @
0de574b2
...
...
@@ -244,6 +244,7 @@ static UINT ACTION_AppSearchReg(MSIPACKAGE *package, LPWSTR *appValue, MSISIGNAT
'w'
,
'h'
,
'e'
,
'r'
,
'e'
,
' '
,
'S'
,
'i'
,
'g'
,
'n'
,
'a'
,
't'
,
'u'
,
'r'
,
'e'
,
'_'
,
' '
,
'='
,
' '
,
'\''
,
'%'
,
's'
,
'\''
,
0
};
LPWSTR
keyPath
=
NULL
,
valueName
=
NULL
;
LPWSTR
deformatted
=
NULL
;
int
root
,
type
;
HKEY
rootKey
,
key
=
NULL
;
DWORD
sz
=
0
,
regType
;
...
...
@@ -264,11 +265,11 @@ static UINT ACTION_AppSearchReg(MSIPACKAGE *package, LPWSTR *appValue, MSISIGNAT
root
=
MSI_RecordGetInteger
(
row
,
2
);
keyPath
=
msi_dup_record_field
(
row
,
3
);
/* FIXME: keyPath needs to be expanded for properties */
valueName
=
msi_dup_record_field
(
row
,
4
);
/* FIXME: valueName probably does too */
type
=
MSI_RecordGetInteger
(
row
,
5
);
deformat_string
(
package
,
keyPath
,
&
deformatted
);
switch
(
root
)
{
case
msidbRegistryRootClassesRoot
:
...
...
@@ -288,7 +289,7 @@ static UINT ACTION_AppSearchReg(MSIPACKAGE *package, LPWSTR *appValue, MSISIGNAT
goto
end
;
}
rc
=
RegOpenKeyW
(
rootKey
,
keyPath
,
&
key
);
rc
=
RegOpenKeyW
(
rootKey
,
deformatted
,
&
key
);
if
(
rc
)
{
TRACE
(
"RegOpenKeyW returned %d
\n
"
,
rc
);
...
...
@@ -337,6 +338,7 @@ end:
msi_free
(
keyPath
);
msi_free
(
valueName
);
msi_free
(
deformatted
);
msiobj_release
(
&
row
->
hdr
);
...
...
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