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
f9c2e21f
Commit
f9c2e21f
authored
Jun 20, 2012
by
Francois Gouget
Committed by
Alexandre Julliard
Jun 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reg: Use the CSTR_XXX macros instead of numeric literals.
parent
de049ff1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
reg.c
programs/reg/reg.c
+10
-10
No files found.
programs/reg/reg.c
View file @
f9c2e21f
...
...
@@ -80,20 +80,20 @@ static HKEY get_rootkey(LPWSTR key)
static
const
WCHAR
szHKCC
[]
=
{
'H'
,
'K'
,
'C'
,
'C'
,
0
};
static
const
WCHAR
szHKEY_CURRENT_CONFIG
[]
=
{
'H'
,
'K'
,
'E'
,
'Y'
,
'_'
,
'C'
,
'U'
,
'R'
,
'R'
,
'E'
,
'N'
,
'T'
,
'_'
,
'C'
,
'O'
,
'N'
,
'F'
,
'I'
,
'G'
,
0
};
if
(
CompareStringW
(
CP_ACP
,
NORM_IGNORECASE
,
key
,
4
,
szHKLM
,
4
)
==
2
||
CompareStringW
(
CP_ACP
,
NORM_IGNORECASE
,
key
,
18
,
szHKEY_LOCAL_MACHINE
,
18
)
==
2
)
if
(
CompareStringW
(
CP_ACP
,
NORM_IGNORECASE
,
key
,
4
,
szHKLM
,
4
)
==
CSTR_EQUAL
||
CompareStringW
(
CP_ACP
,
NORM_IGNORECASE
,
key
,
18
,
szHKEY_LOCAL_MACHINE
,
18
)
==
CSTR_EQUAL
)
return
HKEY_LOCAL_MACHINE
;
else
if
(
CompareStringW
(
CP_ACP
,
NORM_IGNORECASE
,
key
,
4
,
szHKCU
,
4
)
==
2
||
CompareStringW
(
CP_ACP
,
NORM_IGNORECASE
,
key
,
17
,
szHKEY_CURRENT_USER
,
17
)
==
2
)
else
if
(
CompareStringW
(
CP_ACP
,
NORM_IGNORECASE
,
key
,
4
,
szHKCU
,
4
)
==
CSTR_EQUAL
||
CompareStringW
(
CP_ACP
,
NORM_IGNORECASE
,
key
,
17
,
szHKEY_CURRENT_USER
,
17
)
==
CSTR_EQUAL
)
return
HKEY_CURRENT_USER
;
else
if
(
CompareStringW
(
CP_ACP
,
NORM_IGNORECASE
,
key
,
4
,
szHKCR
,
4
)
==
2
||
CompareStringW
(
CP_ACP
,
NORM_IGNORECASE
,
key
,
17
,
szHKEY_CLASSES_ROOT
,
17
)
==
2
)
else
if
(
CompareStringW
(
CP_ACP
,
NORM_IGNORECASE
,
key
,
4
,
szHKCR
,
4
)
==
CSTR_EQUAL
||
CompareStringW
(
CP_ACP
,
NORM_IGNORECASE
,
key
,
17
,
szHKEY_CLASSES_ROOT
,
17
)
==
CSTR_EQUAL
)
return
HKEY_CLASSES_ROOT
;
else
if
(
CompareStringW
(
CP_ACP
,
NORM_IGNORECASE
,
key
,
3
,
szHKU
,
3
)
==
2
||
CompareStringW
(
CP_ACP
,
NORM_IGNORECASE
,
key
,
10
,
szHKEY_USERS
,
10
)
==
2
)
else
if
(
CompareStringW
(
CP_ACP
,
NORM_IGNORECASE
,
key
,
3
,
szHKU
,
3
)
==
CSTR_EQUAL
||
CompareStringW
(
CP_ACP
,
NORM_IGNORECASE
,
key
,
10
,
szHKEY_USERS
,
10
)
==
CSTR_EQUAL
)
return
HKEY_USERS
;
else
if
(
CompareStringW
(
CP_ACP
,
NORM_IGNORECASE
,
key
,
4
,
szHKCC
,
4
)
==
2
||
CompareStringW
(
CP_ACP
,
NORM_IGNORECASE
,
key
,
19
,
szHKEY_CURRENT_CONFIG
,
19
)
==
2
)
else
if
(
CompareStringW
(
CP_ACP
,
NORM_IGNORECASE
,
key
,
4
,
szHKCC
,
4
)
==
CSTR_EQUAL
||
CompareStringW
(
CP_ACP
,
NORM_IGNORECASE
,
key
,
19
,
szHKEY_CURRENT_CONFIG
,
19
)
==
CSTR_EQUAL
)
return
HKEY_CURRENT_CONFIG
;
else
return
NULL
;
}
...
...
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