mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 520129 - crash: columnHeaderCells on ARIA grid cell of the grid without rows [@ nsWinUtils::ConvertToIA2Array], r=davidb
This commit is contained in:
parent
926ee3ccfa
commit
be5fce4aec
@ -51,11 +51,17 @@ nsWinUtils::ConvertToIA2Array(nsIArray *aGeckoArray, IUnknown ***aIA2Array,
|
||||
*aIA2Array = NULL;
|
||||
*aIA2ArrayLen = 0;
|
||||
|
||||
if (!aGeckoArray)
|
||||
return S_FALSE;
|
||||
|
||||
PRUint32 length = 0;
|
||||
nsresult rv = aGeckoArray->GetLength(&length);
|
||||
if (NS_FAILED(rv))
|
||||
return GetHRESULT(rv);
|
||||
|
||||
if (length == 0)
|
||||
return S_FALSE;
|
||||
|
||||
*aIA2Array =
|
||||
static_cast<IUnknown**>(nsMemory::Alloc((length) * sizeof(IUnknown*)));
|
||||
if (!*aIA2Array)
|
||||
|
Loading…
Reference in New Issue
Block a user