Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1e3b6afa
Commit
1e3b6afa
authored
Apr 10, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Apr 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Make sure NT4 and W2K tests don't fail.
parent
899e2ecf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
registry.c
dlls/advapi32/tests/registry.c
+16
-4
No files found.
dlls/advapi32/tests/registry.c
View file @
1e3b6afa
...
...
@@ -657,10 +657,22 @@ static void test_reg_delete_key(void)
DWORD
ret
;
ret
=
RegDeleteKey
(
hkey_main
,
NULL
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
||
ret
==
ERROR_ACCESS_DENIED
||
ret
==
ERROR_BADKEY
,
/* Win95 */
"ret=%d
\n
"
,
ret
);
/* There is a bug in NT4 and W2K that doesn't check if the subkey is NULL. If
* there are also no subkeys available it will delete the key pointed to by hkey_main.
* Not re-creating will make some next tests fail.
*/
if
(
ret
==
ERROR_SUCCESS
)
{
trace
(
"We are probably running on NT4 or W2K as the main key is deleted,"
" re-creating the main key
\n
"
);
setup_main_key
();
}
else
ok
(
ret
==
ERROR_INVALID_PARAMETER
||
ret
==
ERROR_ACCESS_DENIED
||
ret
==
ERROR_BADKEY
,
/* Win95 */
"ret=%d
\n
"
,
ret
);
}
static
void
test_reg_save_key
(
void
)
...
...
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