Rob Shearman : comctl32: Fix local variable shadowing in load_string by moving len to the block in which it is actually used .
Alexandre Julliard
julliard at winehq.org
Mon Feb 25 06:50:56 CST 2008
Module: wine
Branch: master
Commit: 45f13cefc439c254fd7ab0bf03405945f7898757
URL: http://source.winehq.org/git/wine.git/?a=commit;h=45f13cefc439c254fd7ab0bf03405945f7898757
Author: Rob Shearman <rob at codeweavers.com>
Date: Fri Feb 22 19:17:19 2008 +0000
comctl32: Fix local variable shadowing in load_string by moving len to the block in which it is actually used.
---
dlls/comctl32/propsheet.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/propsheet.c b/dlls/comctl32/propsheet.c
index f2b704f..a193082 100644
--- a/dlls/comctl32/propsheet.c
+++ b/dlls/comctl32/propsheet.c
@@ -2898,7 +2898,6 @@ INT_PTR WINAPI PropertySheetW(LPCPROPSHEETHEADERW lppsh)
static LPWSTR load_string( HINSTANCE instance, LPCWSTR str )
{
LPWSTR ret;
- UINT len;
if (IS_INTRESOURCE(str))
{
@@ -2906,6 +2905,7 @@ static LPWSTR load_string( HINSTANCE instance, LPCWSTR str )
HGLOBAL hmem;
WCHAR *ptr;
WORD i, id = LOWORD(str);
+ UINT len;
if (!(hrsrc = FindResourceW( instance, MAKEINTRESOURCEW((id >> 4) + 1), (LPWSTR)RT_STRING )))
return NULL;
More information about the wine-cvs
mailing list