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
0eb85504
Commit
0eb85504
authored
Jun 16, 2021
by
Hugh McMaster
Committed by
Alexandre Julliard
Jun 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reg/tests: Update reg_open() and reg_open_() definitions.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f0686919
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
add.c
programs/reg/tests/add.c
+2
-3
reg_test.h
programs/reg/tests/reg_test.h
+2
-3
No files found.
programs/reg/tests/add.c
View file @
0eb85504
...
...
@@ -81,12 +81,11 @@ void verify_reg_nonexist_(const char *file, unsigned line, HKEY hkey, const char
(
value
&&
*
value
)
?
value
:
"(Default)"
,
err
);
}
void
open_key_
(
const
char
*
file
,
unsigned
line
,
const
HKEY
base
,
const
char
*
path
,
const
DWORD
sam
,
HKEY
*
hkey
)
void
open_key_
(
const
char
*
file
,
unsigned
line
,
HKEY
root
,
const
char
*
path
,
REGSAM
sam
,
HKEY
*
hkey
)
{
LONG
err
;
err
=
RegOpenKeyExA
(
base
,
path
,
0
,
KEY_READ
|
sam
,
hkey
);
err
=
RegOpenKeyExA
(
root
,
path
,
0
,
KEY_READ
|
sam
,
hkey
);
lok
(
err
==
ERROR_SUCCESS
,
"RegOpenKeyExA failed: got error %d
\n
"
,
err
);
}
...
...
programs/reg/tests/reg_test.h
View file @
0eb85504
...
...
@@ -46,9 +46,8 @@ void verify_reg_(const char *file, unsigned line, HKEY hkey, const char *value,
#define verify_reg_nonexist(k,v) verify_reg_nonexist_(__FILE__,__LINE__,k,v)
void
verify_reg_nonexist_
(
const
char
*
file
,
unsigned
line
,
HKEY
hkey
,
const
char
*
value
);
#define open_key(b,p,s,k) open_key_(__FILE__,__LINE__,b,p,s,k)
void
open_key_
(
const
char
*
file
,
unsigned
line
,
const
HKEY
base
,
const
char
*
path
,
const
DWORD
sam
,
HKEY
*
hkey
);
#define open_key(r,p,s,k) open_key_(__FILE__,__LINE__,r,p,s,k)
void
open_key_
(
const
char
*
file
,
unsigned
line
,
HKEY
root
,
const
char
*
path
,
REGSAM
sam
,
HKEY
*
hkey
);
#define close_key(k) close_key_(__FILE__,__LINE__,k)
void
close_key_
(
const
char
*
file
,
unsigned
line
,
HKEY
hkey
);
...
...
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