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
1973a808
Commit
1973a808
authored
Nov 21, 2012
by
Andrew Talbot
Committed by
Alexandre Julliard
Nov 22, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Remove unused variables.
parent
b1d47933
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
profile.c
dlls/kernel32/profile.c
+3
-4
resource.c
dlls/kernel32/resource.c
+1
-2
No files found.
dlls/kernel32/profile.c
View file @
1973a808
...
@@ -1236,12 +1236,11 @@ UINT WINAPI GetPrivateProfileIntW( LPCWSTR section, LPCWSTR entry,
...
@@ -1236,12 +1236,11 @@ UINT WINAPI GetPrivateProfileIntW( LPCWSTR section, LPCWSTR entry,
{
{
WCHAR
buffer
[
30
];
WCHAR
buffer
[
30
];
UNICODE_STRING
bufferW
;
UNICODE_STRING
bufferW
;
INT
len
;
ULONG
result
;
ULONG
result
;
if
(
!
(
len
=
GetPrivateProfileStringW
(
section
,
entry
,
emptystringW
,
if
(
GetPrivateProfileStringW
(
section
,
entry
,
emptystringW
,
buffer
,
sizeof
(
buffer
)
/
sizeof
(
WCHAR
),
buffer
,
sizeof
(
buffer
)
/
sizeof
(
WCHAR
),
filename
))
)
filename
)
==
0
)
return
def_val
;
return
def_val
;
/* FIXME: if entry can be found but it's empty, then Win16 is
/* FIXME: if entry can be found but it's empty, then Win16 is
...
...
dlls/kernel32/resource.c
View file @
1973a808
...
@@ -830,7 +830,6 @@ static IMAGE_NT_HEADERS *get_nt_header( void *base, DWORD mapping_size )
...
@@ -830,7 +830,6 @@ static IMAGE_NT_HEADERS *get_nt_header( void *base, DWORD mapping_size )
static
IMAGE_SECTION_HEADER
*
get_section_header
(
void
*
base
,
DWORD
mapping_size
,
DWORD
*
num_sections
)
static
IMAGE_SECTION_HEADER
*
get_section_header
(
void
*
base
,
DWORD
mapping_size
,
DWORD
*
num_sections
)
{
{
IMAGE_NT_HEADERS
*
nt
;
IMAGE_NT_HEADERS
*
nt
;
IMAGE_SECTION_HEADER
*
sec
;
DWORD
section_ofs
;
DWORD
section_ofs
;
nt
=
get_nt_header
(
base
,
mapping_size
);
nt
=
get_nt_header
(
base
,
mapping_size
);
...
@@ -839,7 +838,7 @@ static IMAGE_SECTION_HEADER *get_section_header( void *base, DWORD mapping_size,
...
@@ -839,7 +838,7 @@ static IMAGE_SECTION_HEADER *get_section_header( void *base, DWORD mapping_size,
/* check that we don't go over the end of the file accessing the sections */
/* check that we don't go over the end of the file accessing the sections */
section_ofs
=
FIELD_OFFSET
(
IMAGE_NT_HEADERS
,
OptionalHeader
)
+
nt
->
FileHeader
.
SizeOfOptionalHeader
;
section_ofs
=
FIELD_OFFSET
(
IMAGE_NT_HEADERS
,
OptionalHeader
)
+
nt
->
FileHeader
.
SizeOfOptionalHeader
;
if
((
nt
->
FileHeader
.
NumberOfSections
*
sizeof
(
*
sec
)
+
section_ofs
)
>
mapping_size
)
if
((
nt
->
FileHeader
.
NumberOfSections
*
sizeof
(
IMAGE_SECTION_HEADER
)
+
section_ofs
)
>
mapping_size
)
return
NULL
;
return
NULL
;
if
(
num_sections
)
if
(
num_sections
)
...
...
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