winedbg: Fix type of loop variable in types_udt_find_element().

This commit is contained in:
Gerald Pfeifer 2007-11-15 21:06:26 +01:00 committed by Alexandre Julliard
parent fc90d2bd45
commit a6dd4795fa

View file

@ -259,7 +259,6 @@ BOOL types_udt_find_element(struct dbg_lvalue* lvalue, const char* name, long in
TI_FINDCHILDREN_PARAMS* fcp = (TI_FINDCHILDREN_PARAMS*)buffer;
WCHAR* ptr;
char tmp[256];
int i;
struct dbg_type type;
if (!types_get_info(&lvalue->type, TI_GET_SYMTAG, &tag) ||
@ -274,6 +273,7 @@ BOOL types_udt_find_element(struct dbg_lvalue* lvalue, const char* name, long in
fcp->Count = min(count, 256);
if (types_get_info(&lvalue->type, TI_FINDCHILDREN, fcp))
{
unsigned i;
type.module = lvalue->type.module;
for (i = 0; i < min(fcp->Count, count); i++)
{