Module: wine Branch: master Commit: 7d2c11e3a481bf0fc13097ce0f167a0b616193de URL: http://source.winehq.org/git/wine.git/?a=commit;h=7d2c11e3a481bf0fc13097ce0f...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Sat Apr 19 15:17:36 2008 +0100
kernel32: Remove unused variables.
---
dlls/kernel32/local16.c | 3 +-- dlls/kernel32/ne_module.c | 2 -- 2 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/dlls/kernel32/local16.c b/dlls/kernel32/local16.c index e250d84..48bc6c3 100644 --- a/dlls/kernel32/local16.c +++ b/dlls/kernel32/local16.c @@ -572,7 +572,7 @@ static HLOCAL16 LOCAL_FreeArena( WORD ds, WORD arena ) { char *ptr = MapSL( MAKESEGPTR( ds, 0 ) ); LOCALHEAPINFO *pInfo; - LOCALARENA *pArena, *pPrev, *pNext; + LOCALARENA *pArena, *pPrev;
TRACE("%04x ds=%04x\n", arena, ds ); if (!(pInfo = LOCAL_GetHeap( ds ))) return arena; @@ -590,7 +590,6 @@ static HLOCAL16 LOCAL_FreeArena( WORD ds, WORD arena ) /* Check if we can merge with the previous block */
pPrev = ARENA_PTR( ptr, pArena->prev & ~3 ); - pNext = ARENA_PTR( ptr, pArena->next ); if ((pPrev->prev & 3) == LOCAL_ARENA_FREE) { arena = pArena->prev & ~3; diff --git a/dlls/kernel32/ne_module.c b/dlls/kernel32/ne_module.c index 27a0abc..dae1a0d 100644 --- a/dlls/kernel32/ne_module.c +++ b/dlls/kernel32/ne_module.c @@ -998,10 +998,8 @@ static HMODULE16 NE_DoLoadBuiltinModule( const IMAGE_DOS_HEADER *mz_header, cons HMODULE16 hModule; HINSTANCE16 hInstance; OSVERSIONINFOW versionInfo; - const IMAGE_OS2_HEADER *ne_header; SIZE_T mapping_size = ~0UL; /* assume builtins don't contain invalid offsets... */
- ne_header = (const IMAGE_OS2_HEADER *)((const BYTE *)mz_header + mz_header->e_lfanew); hModule = build_module( mz_header, mapping_size, file_name ); if (hModule < 32) return hModule; pModule = GlobalLock16( hModule );