mirror of
https://github.com/reactos/reactos.git
synced 2024-09-29 05:54:05 +00:00
[WINESYNC] 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> wine commit id 0eb85504b4b9bdeef8a402d39024e20ad99789a0 by Hugh McMaster <hugh.mcmaster@outlook.com>
This commit is contained in:
parent
0ea0084c73
commit
ea4fae5116
|
@ -81,12 +81,11 @@ void verify_reg_nonexist_(const char *file, unsigned line, HKEY hkey, const char
|
||||||
(value && *value) ? value : "(Default)", err);
|
(value && *value) ? value : "(Default)", err);
|
||||||
}
|
}
|
||||||
|
|
||||||
void open_key_(const char *file, unsigned line, const HKEY base, const char *path,
|
void open_key_(const char *file, unsigned line, HKEY root, const char *path, REGSAM sam, HKEY *hkey)
|
||||||
const DWORD sam, HKEY *hkey)
|
|
||||||
{
|
{
|
||||||
LONG err;
|
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);
|
lok(err == ERROR_SUCCESS, "RegOpenKeyExA failed: got error %d\n", err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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)
|
#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);
|
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)
|
#define open_key(r,p,s,k) open_key_(__FILE__,__LINE__,r,p,s,k)
|
||||||
void open_key_(const char *file, unsigned line, const HKEY base, const char *path,
|
void open_key_(const char *file, unsigned line, HKEY root, const char *path, REGSAM sam, HKEY *hkey);
|
||||||
const DWORD sam, HKEY *hkey);
|
|
||||||
|
|
||||||
#define close_key(k) close_key_(__FILE__,__LINE__,k)
|
#define close_key(k) close_key_(__FILE__,__LINE__,k)
|
||||||
void close_key_(const char *file, unsigned line, HKEY hkey);
|
void close_key_(const char *file, unsigned line, HKEY hkey);
|
||||||
|
|
|
@ -4,4 +4,4 @@ directories:
|
||||||
files:
|
files:
|
||||||
programs/reg/resource.h: base/applications/cmdutils/reg/resource.h
|
programs/reg/resource.h: base/applications/cmdutils/reg/resource.h
|
||||||
tags:
|
tags:
|
||||||
wine: f06869199571466c989b0e75a8edfb55ad6e541a
|
wine: 0eb85504b4b9bdeef8a402d39024e20ad99789a0
|
||||||
|
|
Loading…
Reference in a new issue