bug 197121; fix QI (r=brian johnson, sr=sfraser)

This commit is contained in:
brade%netscape.com 2003-04-22 20:30:54 +00:00
Родитель 900071caca
Коммит 8cba3f4ccc
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -843,7 +843,7 @@ nsClipboardDragDropHookCommand::DoCommandParams(const char *aCommandName,
nsresult rv = aParams->GetISupportsValue("addhook", getter_AddRefs(isuppHook)); nsresult rv = aParams->GetISupportsValue("addhook", getter_AddRefs(isuppHook));
if (NS_SUCCEEDED(rv)) if (NS_SUCCEEDED(rv))
{ {
nsCOMPtr<nsIClipboardDragDropHooks> hook = do_GetInterface(isuppHook); nsCOMPtr<nsIClipboardDragDropHooks> hook = do_QueryInterface(isuppHook);
if (hook) if (hook)
returnValue = obj->AddClipboardDragDropHooks(hook); returnValue = obj->AddClipboardDragDropHooks(hook);
else else