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
fc73c9db
Commit
fc73c9db
authored
Apr 20, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix install state detection for registry components.
parent
4fb5872b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
msi.c
dlls/msi/msi.c
+1
-1
msi.c
dlls/msi/tests/msi.c
+2
-2
No files found.
dlls/msi/msi.c
View file @
fc73c9db
...
@@ -2217,7 +2217,7 @@ UINT WINAPI MsiQueryComponentStateW(LPCWSTR szProductCode,
...
@@ -2217,7 +2217,7 @@ UINT WINAPI MsiQueryComponentStateW(LPCWSTR szProductCode,
else
else
{
{
if
(
lstrlenW
(
val
)
>
2
&&
if
(
lstrlenW
(
val
)
>
2
&&
val
[
0
]
>=
'0'
&&
val
[
0
]
<=
'9'
&&
val
[
1
]
>=
'0'
&&
val
[
1
]
<=
'9'
)
val
[
0
]
>=
'0'
&&
val
[
0
]
<=
'9'
&&
val
[
1
]
>=
'0'
&&
val
[
1
]
<=
'9'
&&
val
[
2
]
!=
':'
)
{
{
*
pdwState
=
INSTALLSTATE_SOURCE
;
*
pdwState
=
INSTALLSTATE_SOURCE
;
}
}
...
...
dlls/msi/tests/msi.c
View file @
fc73c9db
...
@@ -1646,10 +1646,10 @@ static void test_MsiQueryComponentState(void)
...
@@ -1646,10 +1646,10 @@ static void test_MsiQueryComponentState(void)
ok
(
state
==
INSTALLSTATE_SOURCE
,
"Expected INSTALLSTATE_SOURCE, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_SOURCE
,
"Expected INSTALLSTATE_SOURCE, got %d
\n
"
,
state
);
ok
(
error
==
0xdeadbeef
,
"expected 0xdeadbeef, got %u
\n
"
,
error
);
ok
(
error
==
0xdeadbeef
,
"expected 0xdeadbeef, got %u
\n
"
,
error
);
res
=
RegSetValueExA
(
compkey
,
prod_squashed
,
0
,
REG_SZ
,
(
const
BYTE
*
)
"01
"
,
3
);
res
=
RegSetValueExA
(
compkey
,
prod_squashed
,
0
,
REG_SZ
,
(
const
BYTE
*
)
"01
:"
,
4
);
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
/*
bad INSTALLSTATE_SOURCE
*/
/*
registry component
*/
state
=
MAGIC_ERROR
;
state
=
MAGIC_ERROR
;
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
r
=
pMsiQueryComponentStateA
(
prodcode
,
NULL
,
MSIINSTALLCONTEXT_MACHINE
,
component
,
&
state
);
r
=
pMsiQueryComponentStateA
(
prodcode
,
NULL
,
MSIINSTALLCONTEXT_MACHINE
,
component
,
&
state
);
...
...
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