mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-06 16:51:46 +00:00
bug 130206 - crash using jsd
added a null check to nsDragService::GetNumDropItems on windows r=rginda, pink sr=jag a=asa
This commit is contained in:
parent
f4962c5548
commit
efc7ae0c4e
@ -166,6 +166,11 @@ NS_IMETHODIMP nsDragService::StartInvokingDragSession(IDataObject * aDataObj, PR
|
||||
//-------------------------------------------------------------------------
|
||||
NS_IMETHODIMP nsDragService::GetNumDropItems (PRUint32 * aNumItems)
|
||||
{
|
||||
if ( !mDataObject ) {
|
||||
*aNumItems = 0;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
if ( IsCollectionObject(mDataObject) ) {
|
||||
nsDataObjCollection * dataObjCol = NS_STATIC_CAST(nsDataObjCollection*, mDataObject);
|
||||
if ( dataObjCol )
|
||||
|
Loading…
x
Reference in New Issue
Block a user