comctl32: Fix local variable shadowing in load_string by moving len to the block in which it is actually used.

This commit is contained in:
Rob Shearman 2008-02-22 19:17:19 +00:00 committed by Alexandre Julliard
parent e145242671
commit 45f13cefc4
1 changed files with 1 additions and 1 deletions

View File

@ -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;