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
058bfeed
Commit
058bfeed
authored
Mar 04, 2024
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Mar 04, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Test creating registry keys with a NULL return key pointer.
parent
d2045611
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
registry.c
dlls/advapi32/tests/registry.c
+13
-0
No files found.
dlls/advapi32/tests/registry.c
View file @
058bfeed
...
...
@@ -1279,6 +1279,19 @@ static void test_reg_create_key(void)
PACL
key_acl
;
SECURITY_DESCRIPTOR
*
sd
;
/* NULL return key check */
ret
=
RegCreateKeyA
(
hkey_main
,
"Subkey1"
,
NULL
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"Got unexpected ret %ld.
\n
"
,
ret
);
ret
=
RegCreateKeyW
(
hkey_main
,
L"Subkey1"
,
NULL
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"Got unexpected ret %ld.
\n
"
,
ret
);
ret
=
RegCreateKeyExA
(
hkey_main
,
"Subkey1"
,
0
,
NULL
,
0
,
KEY_NOTIFY
,
NULL
,
NULL
,
NULL
);
ok
(
ret
==
ERROR_BADKEY
,
"Got unexpected ret %ld.
\n
"
,
ret
);
ret
=
RegCreateKeyExW
(
hkey_main
,
L"Subkey1"
,
0
,
NULL
,
0
,
KEY_NOTIFY
,
NULL
,
NULL
,
NULL
);
ok
(
ret
==
ERROR_BADKEY
,
"Got unexpected ret %ld.
\n
"
,
ret
);
ret
=
RegCreateKeyExA
(
hkey_main
,
"Subkey1"
,
0
,
NULL
,
0
,
KEY_NOTIFY
,
NULL
,
&
hkey1
,
NULL
);
ok
(
!
ret
,
"RegCreateKeyExA failed with error %ld
\n
"
,
ret
);
/* should succeed: all versions of Windows ignore the access rights
...
...
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