From 45f13cefc439c254fd7ab0bf03405945f7898757 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Fri, 22 Feb 2008 19:17:19 +0000 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/propsheet.c b/dlls/comctl32/propsheet.c index f2b704fabe3..a1930821056 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; -- 2.11.4.GIT