Author: akhaldi
Date: Thu May 9 21:01:41 2013
New Revision: 58979
URL:
http://svn.reactos.org/svn/reactos?rev=58979&view=rev
Log:
[KERNEL32]
* Remove some unused variables. By Andrew Talbot.
Modified:
trunk/reactos/dll/win32/kernel32/wine/profile.c
trunk/reactos/dll/win32/kernel32/wine/res.c
Modified: trunk/reactos/dll/win32/kernel32/wine/profile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/wine/pr…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/wine/profile.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/wine/profile.c [iso-8859-1] Thu May 9 21:01:41 2013
@@ -1239,12 +1239,11 @@
{
WCHAR buffer[30];
UNICODE_STRING bufferW;
- INT len;
ULONG result;
- if (!(len = GetPrivateProfileStringW( section, entry, emptystringW,
- buffer, sizeof(buffer)/sizeof(WCHAR),
- filename )))
+ if (GetPrivateProfileStringW( section, entry, emptystringW,
+ buffer, sizeof(buffer)/sizeof(WCHAR),
+ filename ) == 0)
return def_val;
/* FIXME: if entry can be found but it's empty, then Win16 is
Modified: trunk/reactos/dll/win32/kernel32/wine/res.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/wine/re…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/wine/res.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/wine/res.c [iso-8859-1] Thu May 9 21:01:41 2013
@@ -833,7 +833,6 @@
static IMAGE_SECTION_HEADER *get_section_header( void *base, DWORD mapping_size, DWORD
*num_sections )
{
IMAGE_NT_HEADERS *nt;
- IMAGE_SECTION_HEADER *sec;
DWORD section_ofs;
nt = get_nt_header( base, mapping_size );
@@ -842,7 +841,7 @@
/* 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;
- if ((nt->FileHeader.NumberOfSections * sizeof (*sec) + section_ofs) >
mapping_size)
+ if ((nt->FileHeader.NumberOfSections * sizeof (IMAGE_SECTION_HEADER) +
section_ofs) > mapping_size)
return NULL;
if (num_sections)