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
11f6e89f
Commit
11f6e89f
authored
Mar 31, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Apr 02, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Reopen the main handle if needed.
parent
c343fb1c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
registry.c
dlls/advapi32/tests/registry.c
+10
-0
No files found.
dlls/advapi32/tests/registry.c
View file @
11f6e89f
...
@@ -631,6 +631,16 @@ static void test_reg_close_key(void)
...
@@ -631,6 +631,16 @@ static void test_reg_close_key(void)
ret
=
RegCloseKey
(
NULL
);
ret
=
RegCloseKey
(
NULL
);
ok
(
ret
==
ERROR_INVALID_HANDLE
||
ret
==
ERROR_BADKEY
,
/* Windows 95 returns BADKEY */
ok
(
ret
==
ERROR_INVALID_HANDLE
||
ret
==
ERROR_BADKEY
,
/* Windows 95 returns BADKEY */
"expected ERROR_INVALID_HANDLE or ERROR_BADKEY, got %d
\n
"
,
ret
);
"expected ERROR_INVALID_HANDLE or ERROR_BADKEY, got %d
\n
"
,
ret
);
/* Check to see if we didn't potentially close our main handle, which could happen on win98 as
* win98 doesn't give a new handle when the same key is opened.
* Not re-opening will make some next tests fail.
*/
if
(
hkey_main
==
hkHandle
)
{
trace
(
"The main handle is most likely closed, so re-opening
\n
"
);
RegOpenKeyA
(
HKEY_CURRENT_USER
,
"Software
\\
Wine
\\
Test"
,
&
hkey_main
);
}
}
}
static
void
test_reg_delete_key
(
void
)
static
void
test_reg_delete_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