Use correct IID when doing QueryInterface to avoid using incorrect vtable (bug #2782)

This commit is contained in:
kipp%netscape.com 1999-02-13 17:49:42 +00:00
parent e8114e350d
commit 19695398af
2 changed files with 2 additions and 2 deletions

View File

@ -533,7 +533,7 @@ PresShell::Init(nsIDocument* aDocument,
getter_AddRefs(domselection));
if (!NS_SUCCEEDED(result))
return result;
result = domselection->QueryInterface(kIDOMSelectionIID,
result = domselection->QueryInterface(kIFrameSelectionIID,
getter_AddRefs(mSelection));
if (!NS_SUCCEEDED(result))
return result;

View File

@ -533,7 +533,7 @@ PresShell::Init(nsIDocument* aDocument,
getter_AddRefs(domselection));
if (!NS_SUCCEEDED(result))
return result;
result = domselection->QueryInterface(kIDOMSelectionIID,
result = domselection->QueryInterface(kIFrameSelectionIID,
getter_AddRefs(mSelection));
if (!NS_SUCCEEDED(result))
return result;