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
9048ecef
Commit
9048ecef
authored
Mar 23, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Mar 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: INSTALLPROPERTY_AUTHORIZED_LUA_APP is only available with msi >= 3.0.
parent
d69342cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
12 deletions
+24
-12
msi.c
dlls/msi/tests/msi.c
+24
-12
No files found.
dlls/msi/tests/msi.c
View file @
9048ecef
...
...
@@ -3206,9 +3206,12 @@ static void test_MsiGetProductInfo(void)
sz
=
MAX_PATH
;
lstrcpyA
(
buf
,
"apple"
);
r
=
MsiGetProductInfoA
(
prodcode
,
INSTALLPROPERTY_AUTHORIZED_LUA_APP
,
buf
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
buf
,
""
),
"Expected
\"\"
, got
\"
%s
\"\n
"
,
buf
);
ok
(
sz
==
0
,
"Expected 0, got %d
\n
"
,
sz
);
if
(
r
!=
ERROR_UNKNOWN_PROPERTY
)
{
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
buf
,
""
),
"Expected
\"\"
, got
\"
%s
\"\n
"
,
buf
);
ok
(
sz
==
0
,
"Expected 0, got %d
\n
"
,
sz
);
}
res
=
RegSetValueExA
(
propkey
,
"AuthorizedLUAApp"
,
0
,
REG_DWORD
,
(
const
BYTE
*
)
&
val
,
sizeof
(
DWORD
));
...
...
@@ -3218,9 +3221,12 @@ static void test_MsiGetProductInfo(void)
sz
=
MAX_PATH
;
lstrcpyA
(
buf
,
"apple"
);
r
=
MsiGetProductInfoA
(
prodcode
,
INSTALLPROPERTY_AUTHORIZED_LUA_APP
,
buf
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
buf
,
""
),
"Expected
\"\"
, got
\"
%s
\"\n
"
,
buf
);
ok
(
sz
==
0
,
"Expected 0, got %d
\n
"
,
sz
);
if
(
r
!=
ERROR_UNKNOWN_PROPERTY
)
{
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
buf
,
""
),
"Expected
\"\"
, got
\"
%s
\"\n
"
,
buf
);
ok
(
sz
==
0
,
"Expected 0, got %d
\n
"
,
sz
);
}
res
=
RegSetValueExA
(
prodkey
,
"AuthorizedLUAApp"
,
0
,
REG_SZ
,
(
LPBYTE
)
"auth"
,
5
);
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
...
...
@@ -3229,9 +3235,12 @@ static void test_MsiGetProductInfo(void)
sz
=
MAX_PATH
;
lstrcpyA
(
buf
,
"apple"
);
r
=
MsiGetProductInfoA
(
prodcode
,
INSTALLPROPERTY_AUTHORIZED_LUA_APP
,
buf
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
buf
,
"auth"
),
"Expected
\"
auth
\"
, got
\"
%s
\"\n
"
,
buf
);
ok
(
sz
==
4
,
"Expected 4, got %d
\n
"
,
sz
);
if
(
r
!=
ERROR_UNKNOWN_PROPERTY
)
{
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
buf
,
"auth"
),
"Expected
\"
auth
\"
, got
\"
%s
\"\n
"
,
buf
);
ok
(
sz
==
4
,
"Expected 4, got %d
\n
"
,
sz
);
}
res
=
RegSetValueExA
(
prodkey
,
"AuthorizedLUAApp"
,
0
,
REG_DWORD
,
(
const
BYTE
*
)
&
val
,
sizeof
(
DWORD
));
...
...
@@ -3241,9 +3250,12 @@ static void test_MsiGetProductInfo(void)
sz
=
MAX_PATH
;
lstrcpyA
(
buf
,
"apple"
);
r
=
MsiGetProductInfoA
(
prodcode
,
INSTALLPROPERTY_AUTHORIZED_LUA_APP
,
buf
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
buf
,
"42"
),
"Expected
\"
42
\"
, got
\"
%s
\"\n
"
,
buf
);
ok
(
sz
==
2
,
"Expected 2, got %d
\n
"
,
sz
);
if
(
r
!=
ERROR_UNKNOWN_PROPERTY
)
{
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
buf
,
"42"
),
"Expected
\"
42
\"
, got
\"
%s
\"\n
"
,
buf
);
ok
(
sz
==
2
,
"Expected 2, got %d
\n
"
,
sz
);
}
RegDeleteValueA
(
propkey
,
"HelpLink"
);
RegDeleteValueA
(
propkey
,
"DisplayName"
);
...
...
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