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
642cddf1
Commit
642cddf1
authored
Oct 20, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Oct 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Return the requested ini field.
parent
f1e2041b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
9 deletions
+29
-9
appsearch.c
dlls/msi/appsearch.c
+27
-1
package.c
dlls/msi/tests/package.c
+2
-8
No files found.
dlls/msi/appsearch.c
View file @
642cddf1
...
...
@@ -405,6 +405,32 @@ end:
return
ERROR_SUCCESS
;
}
static
LPWSTR
get_ini_field
(
LPWSTR
buf
,
int
field
)
{
LPWSTR
beg
,
end
;
int
i
=
1
;
if
(
field
==
0
)
return
strdupW
(
buf
);
beg
=
buf
;
while
((
end
=
strchrW
(
beg
,
','
))
&&
i
<
field
)
{
beg
=
end
+
1
;
while
(
*
beg
&&
*
beg
==
' '
)
beg
++
;
i
++
;
}
end
=
strchrW
(
beg
,
','
);
if
(
!
end
)
end
=
beg
+
lstrlenW
(
beg
);
*
end
=
'\0'
;
return
strdupW
(
beg
);
}
static
UINT
ACTION_AppSearchIni
(
MSIPACKAGE
*
package
,
LPWSTR
*
appValue
,
MSISIGNATURE
*
sig
)
{
...
...
@@ -452,7 +478,7 @@ static UINT ACTION_AppSearchIni(MSIPACKAGE *package, LPWSTR *appValue,
FIXME
(
"unimplemented for File (%s)
\n
"
,
debugstr_w
(
buf
));
break
;
case
msidbLocatorTypeRawValue
:
*
appValue
=
strdupW
(
buf
);
*
appValue
=
get_ini_field
(
buf
,
field
);
break
;
}
}
...
...
dlls/msi/tests/package.c
View file @
642cddf1
...
...
@@ -6584,18 +6584,12 @@ static void test_appsearch_inilocator(void)
size
=
MAX_PATH
;
r
=
MsiGetPropertyA
(
hpkg
,
"SIGPROP1"
,
prop
,
&
size
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
todo_wine
{
ok
(
!
lstrcmpA
(
prop
,
"keydata"
),
"Expected
\"
keydata
\"
, got
\"
%s
\"\n
"
,
prop
);
}
ok
(
!
lstrcmpA
(
prop
,
"keydata"
),
"Expected
\"
keydata
\"
, got
\"
%s
\"\n
"
,
prop
);
size
=
MAX_PATH
;
r
=
MsiGetPropertyA
(
hpkg
,
"SIGPROP2"
,
prop
,
&
size
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
todo_wine
{
ok
(
!
lstrcmpA
(
prop
,
"field2"
),
"Expected
\"
field2
\"
, got
\"
%s
\"\n
"
,
prop
);
}
ok
(
!
lstrcmpA
(
prop
,
"field2"
),
"Expected
\"
field2
\"
, got
\"
%s
\"\n
"
,
prop
);
size
=
MAX_PATH
;
r
=
MsiGetPropertyA
(
hpkg
,
"SIGPROP3"
,
prop
,
&
size
);
...
...
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