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
327667a6
Commit
327667a6
authored
Jul 14, 2023
by
Shaun Ren
Committed by
Alexandre Julliard
Jul 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sapi/tests: Fix ISpObjectToken::CreateInstance E_ACCESSDENIED error.
parent
bc479f2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
token.c
dlls/sapi/tests/token.c
+7
-6
No files found.
dlls/sapi/tests/token.c
View file @
327667a6
...
...
@@ -601,7 +601,7 @@ static IClassFactory test_class_cf = { &ClassFactoryVtbl };
static
void
test_object_token
(
void
)
{
static
const
WCHAR
test_token_id
[]
=
L"HKEY_
CURRENT_USER
\\
Softwar
e
\\
Winetest
\\
sapi
\\
TestToken"
;
static
const
WCHAR
test_token_id
[]
=
L"HKEY_
LOCAL_MACHINE
\\
Software
\\
Win
e
\\
Winetest
\\
sapi
\\
TestToken"
;
ISpObjectToken
*
token
;
ISpDataKey
*
sub_key
;
...
...
@@ -742,7 +742,12 @@ static void test_object_token(void)
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
hr
=
ISpObjectToken_SetId
(
token
,
NULL
,
test_token_id
,
TRUE
);
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
ok
(
hr
==
S_OK
||
broken
(
hr
==
E_ACCESSDENIED
)
/* win1064_adm */
,
"got %08lx
\n
"
,
hr
);
if
(
hr
==
E_ACCESSDENIED
)
{
win_skip
(
"token SetId access denied
\n
"
);
ISpObjectToken_Release
(
token
);
return
;
}
hr
=
ISpObjectToken_CreateKey
(
token
,
L"Attributes"
,
&
sub_key
);
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
...
...
@@ -763,10 +768,6 @@ static void test_object_token(void)
test_class_token
=
NULL
;
hr
=
ISpObjectToken_CreateInstance
(
token
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IUnknown
,
(
void
**
)
&
obj
);
if
(
hr
==
E_ACCESSDENIED
)
{
win_skip
(
"ISpObjectToken_CreateInstance returned E_ACCESSDENIED
\n
"
);
return
;
}
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
ok
(
test_class_token
!=
NULL
,
"test_class_token not set
\n
"
);
...
...
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