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
be19acfb
Commit
be19acfb
authored
Nov 20, 2008
by
Francois Gouget
Committed by
Alexandre Julliard
Nov 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Avoid wsprintfW() so we can avoid loading user32.dll for 'regedit /E'.
parent
a81bb704
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
regproc.c
programs/regedit/regproc.c
+5
-5
No files found.
programs/regedit/regproc.c
View file @
be19acfb
...
...
@@ -943,7 +943,7 @@ static void REGPROC_export_binary(WCHAR **line_buf, DWORD *line_buf_size, DWORD
}
else
{
const
WCHAR
hex_format
[]
=
{
'h'
,
'e'
,
'x'
,
'('
,
'%'
,
'u'
,
')'
,
':'
,
0
};
hex_prefix
=
hex_buf
;
w
sprintfW
(
hex_buf
,
hex_format
,
type
);
sprintfW
(
hex_buf
,
hex_format
,
type
);
if
((
type
==
REG_SZ
||
type
==
REG_EXPAND_SZ
||
type
==
REG_MULTI_SZ
)
&&
!
unicode
)
{
value_multibyte
=
GetMultiByteStringN
((
WCHAR
*
)
value
,
value_size
/
sizeof
(
WCHAR
),
&
value_size
);
...
...
@@ -973,7 +973,7 @@ static void REGPROC_export_binary(WCHAR **line_buf, DWORD *line_buf_size, DWORD
i
=
0
;
while
(
1
)
{
w
sprintfW
(
*
line_buf
+
data_pos
,
format
,
(
unsigned
int
)
value
[
i
]);
sprintfW
(
*
line_buf
+
data_pos
,
format
,
(
unsigned
int
)
value
[
i
]);
data_pos
+=
2
;
if
(
++
i
==
value_size
)
break
;
...
...
@@ -1063,7 +1063,7 @@ static void export_hkey(FILE *file, HKEY key,
REGPROC_resize_char_buffer
(
line_buf
,
line_buf_size
,
lstrlenW
(
*
reg_key_name_buf
)
+
4
);
/* output data for the current key */
w
sprintfW
(
*
line_buf
,
key_format
,
*
reg_key_name_buf
);
sprintfW
(
*
line_buf
,
key_format
,
*
reg_key_name_buf
);
REGPROC_write_line
(
file
,
*
line_buf
,
unicode
);
/* print all the values */
...
...
@@ -1089,7 +1089,7 @@ static void export_hkey(FILE *file, HKEY key,
line_len
=
3
+
lstrlenW
(
*
val_name_buf
);
REGPROC_resize_char_buffer
(
line_buf
,
line_buf_size
,
line_len
);
w
sprintfW
(
*
line_buf
,
val_start
,
*
val_name_buf
);
sprintfW
(
*
line_buf
,
val_start
,
*
val_name_buf
);
}
else
{
const
WCHAR
std_val
[]
=
{
'@'
,
'='
,
0
};
line_len
=
2
;
...
...
@@ -1131,7 +1131,7 @@ static void export_hkey(FILE *file, HKEY key,
WCHAR
format
[]
=
{
'd'
,
'w'
,
'o'
,
'r'
,
'd'
,
':'
,
'%'
,
'0'
,
'8'
,
'x'
,
'\n'
,
0
};
REGPROC_resize_char_buffer
(
line_buf
,
line_buf_size
,
line_len
+
15
);
w
sprintfW
(
*
line_buf
+
line_len
,
format
,
*
((
DWORD
*
)
*
val_buf
));
sprintfW
(
*
line_buf
+
line_len
,
format
,
*
((
DWORD
*
)
*
val_buf
));
break
;
}
...
...
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