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
db7ba0b2
Commit
db7ba0b2
authored
Oct 21, 2011
by
Marcus Meissner
Committed by
Alexandre Julliard
Oct 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Avoid shadowing parameter "len".
parent
bba0180e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
profile.c
dlls/kernel32/profile.c
+4
-4
No files found.
dlls/kernel32/profile.c
View file @
db7ba0b2
...
@@ -1113,11 +1113,11 @@ INT WINAPI GetPrivateProfileStringW( LPCWSTR section, LPCWSTR entry,
...
@@ -1113,11 +1113,11 @@ INT WINAPI GetPrivateProfileStringW( LPCWSTR section, LPCWSTR entry,
if
(
p
>=
def_val
)
if
(
p
>=
def_val
)
{
{
int
len
=
(
int
)(
p
-
def_val
)
+
1
;
int
v
len
=
(
int
)(
p
-
def_val
)
+
1
;
defval_tmp
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
len
+
1
)
*
sizeof
(
WCHAR
));
defval_tmp
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
v
len
+
1
)
*
sizeof
(
WCHAR
));
memcpy
(
defval_tmp
,
def_val
,
len
*
sizeof
(
WCHAR
));
memcpy
(
defval_tmp
,
def_val
,
v
len
*
sizeof
(
WCHAR
));
defval_tmp
[
len
]
=
'\0'
;
defval_tmp
[
v
len
]
=
'\0'
;
def_val
=
defval_tmp
;
def_val
=
defval_tmp
;
}
}
}
}
...
...
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