mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 667396 - nsAccessibilityService::GetAccessibleFor() is an external api so we should NULL check the node argument r=surkov
This commit is contained in:
parent
cfb09d217c
commit
db021c29e7
@ -635,6 +635,9 @@ nsAccessibilityService::GetAccessibleFor(nsIDOMNode *aNode,
|
||||
nsIAccessible **aAccessible)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aAccessible);
|
||||
*aAccessible = nsnull;
|
||||
if (!aNode)
|
||||
return NS_OK;
|
||||
|
||||
nsCOMPtr<nsINode> node(do_QueryInterface(aNode));
|
||||
NS_IF_ADDREF(*aAccessible = GetAccessible(node));
|
||||
|
Loading…
Reference in New Issue
Block a user