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
ecb9ce4b
Commit
ecb9ce4b
authored
Dec 05, 2017
by
Hugh McMaster
Committed by
Alexandre Julliard
Dec 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reg: Make the newline string a static global.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
13a00077
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
reg.c
programs/reg/reg.c
+2
-4
No files found.
programs/reg/reg.c
View file @
ecb9ce4b
...
...
@@ -77,6 +77,8 @@ type_rels[] =
{
REG_MULTI_SZ
,
type_multi_sz
},
};
static
const
WCHAR
newlineW
[]
=
{
'\n'
,
0
};
void
*
heap_xalloc
(
size_t
size
)
{
void
*
buf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
...
...
@@ -610,7 +612,6 @@ static const WCHAR *reg_type_to_wchar(DWORD type)
static
void
output_value
(
const
WCHAR
*
value_name
,
DWORD
type
,
BYTE
*
data
,
DWORD
data_size
)
{
static
const
WCHAR
fmt
[]
=
{
' '
,
' '
,
' '
,
' '
,
'%'
,
'1'
,
0
};
static
const
WCHAR
newlineW
[]
=
{
'\n'
,
0
};
WCHAR
defval
[
32
];
WCHAR
*
reg_data
;
...
...
@@ -660,7 +661,6 @@ static int query_value(HKEY key, WCHAR *value_name, WCHAR *path, BOOL recurse)
DWORD
type
,
path_len
,
i
;
BYTE
*
data
;
WCHAR
fmt
[]
=
{
'%'
,
'1'
,
'\n'
,
0
};
WCHAR
newlineW
[]
=
{
'\n'
,
0
};
WCHAR
*
subkey_name
,
*
subkey_path
;
HKEY
subkey
;
...
...
@@ -740,7 +740,6 @@ static int query_all(HKEY key, WCHAR *path, BOOL recurse)
WCHAR
fmt
[]
=
{
'%'
,
'1'
,
'\n'
,
0
};
WCHAR
fmt_path
[]
=
{
'%'
,
'1'
,
'\\'
,
'%'
,
'2'
,
'\n'
,
0
};
WCHAR
*
value_name
,
*
subkey_name
,
*
subkey_path
;
WCHAR
newlineW
[]
=
{
'\n'
,
0
};
BYTE
*
data
;
HKEY
subkey
;
...
...
@@ -821,7 +820,6 @@ static int reg_query(HKEY root, WCHAR *path, WCHAR *key_name, WCHAR *value_name,
BOOL
value_empty
,
BOOL
recurse
)
{
HKEY
key
;
WCHAR
newlineW
[]
=
{
'\n'
,
0
};
int
ret
;
if
(
RegOpenKeyExW
(
root
,
path
,
0
,
KEY_READ
,
&
key
)
!=
ERROR_SUCCESS
)
...
...
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