use GetCurrentSession() instead of QI to get drag session from service. r=pchen/sr=sfraser. bug# 77380

git-svn-id: svn://10.0.0.236/trunk@93168 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pinkerton%netscape.com
2001-04-26 19:05:08 +00:00
parent 5dfc3b2972
commit 9afdb2b0d4
6 changed files with 16 additions and 12 deletions

View File

@@ -741,8 +741,8 @@ NS_IMETHODIMP nsHTMLEditor::InsertFromDrop(nsIDOMEvent* aDropEvent)
NS_WITH_SERVICE(nsIDragService, dragService, "@mozilla.org/widget/dragservice;1", &rv);
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIDragSession> dragSession(do_QueryInterface(dragService));
nsCOMPtr<nsIDragSession> dragSession;
dragService->GetCurrentSession(getter_AddRefs(dragService)));
if (!dragSession) return NS_OK;
// Get the nsITransferable interface for getting the data from the drop