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
b35642f5
Commit
b35642f5
authored
Feb 09, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Fix a couple of test failures on limited user accounts.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e395d4e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
reg.c
dlls/ntdll/tests/reg.c
+9
-6
No files found.
dlls/ntdll/tests/reg.c
View file @
b35642f5
...
...
@@ -591,8 +591,9 @@ static void test_NtCreateKey(void)
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"
\\
Registry
\\
Machine
\\
Software
\\
Classes"
);
status
=
pNtCreateKey
(
&
subkey
,
am
,
&
attr
,
0
,
0
,
0
,
0
);
ok
(
status
==
STATUS_SUCCESS
,
"NtCreateKey failed: 0x%08x
\n
"
,
status
);
pNtClose
(
subkey
);
ok
(
status
==
STATUS_SUCCESS
||
status
==
STATUS_ACCESS_DENIED
,
"NtCreateKey failed: 0x%08x
\n
"
,
status
);
if
(
!
status
)
pNtClose
(
subkey
);
pRtlFreeUnicodeString
(
&
str
);
/* the REGISTRY part is case-sensitive unless OBJ_CASE_INSENSITIVE is specified */
...
...
@@ -605,14 +606,16 @@ static void test_NtCreateKey(void)
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"
\\
REGISTRY
\\
Machine
\\
Software
\\
Classes"
);
status
=
pNtCreateKey
(
&
subkey
,
am
,
&
attr
,
0
,
0
,
0
,
0
);
ok
(
status
==
STATUS_SUCCESS
,
"NtCreateKey failed: 0x%08x
\n
"
,
status
);
pNtClose
(
subkey
);
ok
(
status
==
STATUS_SUCCESS
||
status
==
STATUS_ACCESS_DENIED
,
"NtCreateKey failed: 0x%08x
\n
"
,
status
);
if
(
!
status
)
pNtClose
(
subkey
);
pRtlFreeUnicodeString
(
&
str
);
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"
\\
REGISTRY
\\
MACHINE
\\
SOFTWARE
\\
CLASSES"
);
status
=
pNtCreateKey
(
&
subkey
,
am
,
&
attr
,
0
,
0
,
0
,
0
);
ok
(
status
==
STATUS_SUCCESS
,
"NtCreateKey failed: 0x%08x
\n
"
,
status
);
pNtClose
(
subkey
);
ok
(
status
==
STATUS_SUCCESS
||
status
==
STATUS_ACCESS_DENIED
,
"NtCreateKey failed: 0x%08x
\n
"
,
status
);
if
(
!
status
)
pNtClose
(
subkey
);
pRtlFreeUnicodeString
(
&
str
);
pNtClose
(
key
);
...
...
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