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
e852f195
Commit
e852f195
authored
Oct 18, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Cast-qual warning fix.
parent
90b1d7ab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
registry.c
dlls/advapi32/registry.c
+11
-11
No files found.
dlls/advapi32/registry.c
View file @
e852f195
...
@@ -73,18 +73,16 @@ static const WCHAR name_CURRENT_CONFIG[] =
...
@@ -73,18 +73,16 @@ static const WCHAR name_CURRENT_CONFIG[] =
static
const
WCHAR
name_DYN_DATA
[]
=
static
const
WCHAR
name_DYN_DATA
[]
=
{
'D'
,
'y'
,
'n'
,
'D'
,
'a'
,
't'
,
'a'
,
0
};
{
'D'
,
'y'
,
'n'
,
'D'
,
'a'
,
't'
,
'a'
,
0
};
#define DECL_STR(key) { sizeof(name_##key)-sizeof(WCHAR), sizeof(name_##key), (LPWSTR)name_##key }
static
const
WCHAR
*
root_key_names
[
NB_SPECIAL_ROOT_KEYS
]
=
static
UNICODE_STRING
root_key_names
[
NB_SPECIAL_ROOT_KEYS
]
=
{
{
DECL_STR
(
CLASSES_ROOT
)
,
name_CLASSES_ROOT
,
{
0
,
0
,
NULL
}
,
/* HKEY_CURRENT_USER is determined dynamically */
NULL
,
/* HKEY_CURRENT_USER is determined dynamically */
DECL_STR
(
LOCAL_MACHINE
)
,
name_LOCAL_MACHINE
,
DECL_STR
(
USERS
)
,
name_USERS
,
DECL_STR
(
PERFORMANCE_DATA
)
,
name_PERFORMANCE_DATA
,
DECL_STR
(
CURRENT_CONFIG
)
,
name_CURRENT_CONFIG
,
DECL_STR
(
DYN_DATA
)
name_DYN_DATA
};
};
#undef DECL_STR
/* check if value type needs string conversion (Ansi<->Unicode) */
/* check if value type needs string conversion (Ansi<->Unicode) */
...
@@ -117,13 +115,15 @@ static HKEY create_special_root_hkey( HANDLE hkey, DWORD access )
...
@@ -117,13 +115,15 @@ static HKEY create_special_root_hkey( HANDLE hkey, DWORD access )
else
else
{
{
OBJECT_ATTRIBUTES
attr
;
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
name
;
attr
.
Length
=
sizeof
(
attr
);
attr
.
Length
=
sizeof
(
attr
);
attr
.
RootDirectory
=
0
;
attr
.
RootDirectory
=
0
;
attr
.
ObjectName
=
&
root_key_names
[
idx
]
;
attr
.
ObjectName
=
&
name
;
attr
.
Attributes
=
0
;
attr
.
Attributes
=
0
;
attr
.
SecurityDescriptor
=
NULL
;
attr
.
SecurityDescriptor
=
NULL
;
attr
.
SecurityQualityOfService
=
NULL
;
attr
.
SecurityQualityOfService
=
NULL
;
RtlInitUnicodeString
(
&
name
,
root_key_names
[
idx
]
);
if
(
NtCreateKey
(
&
hkey
,
access
,
&
attr
,
0
,
NULL
,
0
,
NULL
))
return
0
;
if
(
NtCreateKey
(
&
hkey
,
access
,
&
attr
,
0
,
NULL
,
0
,
NULL
))
return
0
;
TRACE
(
"%s -> %p
\n
"
,
debugstr_w
(
attr
.
ObjectName
->
Buffer
),
hkey
);
TRACE
(
"%s -> %p
\n
"
,
debugstr_w
(
attr
.
ObjectName
->
Buffer
),
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