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
de6c2f9c
Commit
de6c2f9c
authored
Dec 23, 2022
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Remove reg_ prefix from static functions.
parent
87758b72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
reg.c
dlls/wbemprox/reg.c
+9
-9
No files found.
dlls/wbemprox/reg.c
View file @
de6c2f9c
...
...
@@ -75,7 +75,7 @@ static HRESULT to_i4_array( DWORD *values, DWORD count, VARIANT *var )
return
S_OK
;
}
static
unsigned
int
reg_
get_access_mask
(
IWbemContext
*
context
)
static
unsigned
int
get_access_mask
(
IWbemContext
*
context
)
{
VARIANT
value
;
...
...
@@ -106,7 +106,7 @@ static HRESULT create_key( HKEY root, const WCHAR *subkey, IWbemContext *context
TRACE
(
"%p, %s
\n
"
,
root
,
debugstr_w
(
subkey
));
res
=
RegCreateKeyExW
(
root
,
subkey
,
0
,
NULL
,
0
,
reg_
get_access_mask
(
context
),
NULL
,
&
hkey
,
NULL
);
res
=
RegCreateKeyExW
(
root
,
subkey
,
0
,
NULL
,
0
,
get_access_mask
(
context
),
NULL
,
&
hkey
,
NULL
);
set_variant
(
VT_UI4
,
res
,
NULL
,
retval
);
if
(
!
res
)
{
...
...
@@ -172,7 +172,7 @@ static HRESULT enum_key( HKEY root, const WCHAR *subkey, VARIANT *names, IWbemCo
TRACE
(
"%p, %s
\n
"
,
root
,
debugstr_w
(
subkey
));
if
(
!
(
strings
=
malloc
(
count
*
sizeof
(
BSTR
)
)))
return
E_OUTOFMEMORY
;
if
((
res
=
RegOpenKeyExW
(
root
,
subkey
,
0
,
KEY_ENUMERATE_SUB_KEYS
|
reg_
get_access_mask
(
context
),
&
hkey
)))
if
((
res
=
RegOpenKeyExW
(
root
,
subkey
,
0
,
KEY_ENUMERATE_SUB_KEYS
|
get_access_mask
(
context
),
&
hkey
)))
{
set_variant
(
VT_UI4
,
res
,
NULL
,
retval
);
free
(
strings
);
...
...
@@ -282,7 +282,7 @@ static HRESULT enum_values( HKEY root, const WCHAR *subkey, VARIANT *names, VARI
TRACE
(
"%p, %s
\n
"
,
root
,
debugstr_w
(
subkey
));
if
((
res
=
RegOpenKeyExW
(
root
,
subkey
,
0
,
KEY_QUERY_VALUE
|
reg_
get_access_mask
(
context
),
&
hkey
)))
goto
done
;
if
((
res
=
RegOpenKeyExW
(
root
,
subkey
,
0
,
KEY_QUERY_VALUE
|
get_access_mask
(
context
),
&
hkey
)))
goto
done
;
if
((
res
=
RegQueryInfoKeyW
(
hkey
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
&
count
,
&
buflen
,
NULL
,
NULL
,
NULL
)))
goto
done
;
...
...
@@ -395,7 +395,7 @@ static HRESULT get_stringvalue( HKEY root, const WCHAR *subkey, const WCHAR *nam
TRACE
(
"%p, %s, %s
\n
"
,
root
,
debugstr_w
(
subkey
),
debugstr_w
(
name
));
mask
=
reg_
get_access_mask
(
context
);
mask
=
get_access_mask
(
context
);
if
(
mask
&
KEY_WOW64_64KEY
)
flags
|=
RRF_SUBKEY_WOW6464KEY
;
...
...
@@ -504,7 +504,7 @@ static HRESULT get_binaryvalue( HKEY root, const WCHAR *subkey, const WCHAR *nam
TRACE
(
"%p, %s, %s
\n
"
,
root
,
debugstr_w
(
subkey
),
debugstr_w
(
name
));
mask
=
reg_
get_access_mask
(
context
);
mask
=
get_access_mask
(
context
);
if
(
mask
&
KEY_WOW64_64KEY
)
flags
|=
RRF_SUBKEY_WOW6464KEY
;
...
...
@@ -592,7 +592,7 @@ static void set_stringvalue( HKEY root, const WCHAR *subkey, const WCHAR *name,
TRACE
(
"%p, %s, %s, %s
\n
"
,
root
,
debugstr_w
(
subkey
),
debugstr_w
(
name
),
debugstr_w
(
value
));
if
((
res
=
RegOpenKeyExW
(
root
,
subkey
,
0
,
KEY_SET_VALUE
|
reg_
get_access_mask
(
context
),
&
hkey
)))
if
((
res
=
RegOpenKeyExW
(
root
,
subkey
,
0
,
KEY_SET_VALUE
|
get_access_mask
(
context
),
&
hkey
)))
{
set_variant
(
VT_UI4
,
res
,
NULL
,
retval
);
return
;
...
...
@@ -675,7 +675,7 @@ static void set_dwordvalue( HKEY root, const WCHAR *subkey, const WCHAR *name, D
TRACE
(
"%p, %s, %s, %#lx
\n
"
,
root
,
debugstr_w
(
subkey
),
debugstr_w
(
name
),
value
);
if
((
res
=
RegOpenKeyExW
(
root
,
subkey
,
0
,
KEY_SET_VALUE
|
reg_
get_access_mask
(
context
),
&
hkey
)))
if
((
res
=
RegOpenKeyExW
(
root
,
subkey
,
0
,
KEY_SET_VALUE
|
get_access_mask
(
context
),
&
hkey
)))
{
set_variant
(
VT_UI4
,
res
,
NULL
,
retval
);
return
;
...
...
@@ -752,7 +752,7 @@ static void delete_key( HKEY root, const WCHAR *subkey, IWbemContext *context, V
TRACE
(
"%p, %s
\n
"
,
root
,
debugstr_w
(
subkey
));
res
=
RegDeleteKeyExW
(
root
,
subkey
,
reg_
get_access_mask
(
context
),
0
);
res
=
RegDeleteKeyExW
(
root
,
subkey
,
get_access_mask
(
context
),
0
);
set_variant
(
VT_UI4
,
res
,
NULL
,
retval
);
}
...
...
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