kernel32: Do not reuse the name of a function argument for a local variable.

Michael Stefaniuc mstefani at redhat.de
Thu Dec 13 17:18:21 CST 2007


This fixes the sparse warning:
dlls/kernel32/utthunk.c:170:19: warning: symbol 'hModule' shadows an earlier one
---
 dlls/kernel32/utthunk.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/kernel32/utthunk.c b/dlls/kernel32/utthunk.c
index a142216..55ff733 100644
--- a/dlls/kernel32/utthunk.c
+++ b/dlls/kernel32/utthunk.c
@@ -167,8 +167,8 @@ static UTINFO *UTAlloc( HMODULE hModule, HMODULE16 hModule16,
 
     if ( !UTGlue16_Segptr )
     {
-        HMODULE16 hModule = GetModuleHandle16( "KERNEL" );
-        UTGlue16_Segptr = GetProcAddress16( hModule, "UTGlue16" );
+        HMODULE16 hMod = GetModuleHandle16( "KERNEL" );
+        UTGlue16_Segptr = GetProcAddress16( hMod, "UTGlue16" );
         if ( !UTGlue16_Segptr ) return NULL;
     }
 
-- 
1.5.3.7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071214/e89a7440/attachment.pgp 


More information about the wine-patches mailing list