Fixed bustage possibly caused by broken optimization. b=201097 r=dbradley@netscape.com sr=alecf@netscape.com
This commit is contained in:
Родитель
a68d4bf858
Коммит
32013545af
|
@ -921,9 +921,9 @@ NewControl(const char *pluginType,
|
||||||
|
|
||||||
// Check for existing params with the same name
|
// Check for existing params with the same name
|
||||||
BOOL bFound = FALSE;
|
BOOL bFound = FALSE;
|
||||||
for (unsigned long i = 0; i < pl.GetSize(); i++)
|
for (unsigned long j = 0; j < pl.GetSize(); j++)
|
||||||
{
|
{
|
||||||
if (wcscmp(pl.GetNameOf(i), (BSTR) paramName) == 0)
|
if (wcscmp(pl.GetNameOf(j), (BSTR) paramName) == 0)
|
||||||
{
|
{
|
||||||
bFound = TRUE;
|
bFound = TRUE;
|
||||||
break;
|
break;
|
||||||
|
@ -937,7 +937,8 @@ NewControl(const char *pluginType,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add named parameter to list
|
// Add named parameter to list
|
||||||
pl.AddNamedProperty(paramName, CComVariant(paramValue));
|
CComVariant v(paramValue);
|
||||||
|
pl.AddNamedProperty(paramName, v);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче