mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-28 11:28:38 +00:00
Use correct IID when doing QueryInterface to avoid using incorrect vtable (bug #2782)
This commit is contained in:
parent
e8114e350d
commit
19695398af
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user