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
71af3e15
Commit
71af3e15
authored
Nov 12, 2008
by
Francois Gouget
Committed by
Alexandre Julliard
Nov 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Remove unneeded variable initializations.
parent
078fc191
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
regproc.c
programs/regedit/regproc.c
+4
-4
No files found.
programs/regedit/regproc.c
View file @
71af3e15
...
...
@@ -73,7 +73,7 @@ WCHAR* GetWideString(const char* strA)
{
if
(
strA
)
{
WCHAR
*
strW
=
NULL
;
WCHAR
*
strW
;
int
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
strA
,
-
1
,
NULL
,
0
);
strW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
...
...
@@ -92,7 +92,7 @@ WCHAR* GetWideStringN(const char* strA, int chars, DWORD *len)
{
if
(
strA
)
{
WCHAR
*
strW
=
NULL
;
WCHAR
*
strW
;
*
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
strA
,
chars
,
NULL
,
0
);
strW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
*
len
*
sizeof
(
WCHAR
));
...
...
@@ -112,7 +112,7 @@ char* GetMultiByteString(const WCHAR* strW)
{
if
(
strW
)
{
char
*
strA
=
NULL
;
char
*
strA
;
int
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
strW
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
strA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
...
...
@@ -131,7 +131,7 @@ char* GetMultiByteStringN(const WCHAR* strW, int chars, DWORD* len)
{
if
(
strW
)
{
char
*
strA
=
NULL
;
char
*
strA
;
*
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
strW
,
chars
,
NULL
,
0
,
NULL
,
NULL
);
strA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
*
len
);
...
...
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