Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Try fixing ComPtrs
  • Loading branch information
rainemak committed Apr 8, 2020
1 parent 7b90fb5 commit 7ca7c54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions embedding/embedlite/modules/EmbedLiteAppService.cpp
Expand Up @@ -131,8 +131,8 @@ EmbedLiteAppService::GetIDByWindow(nsIDOMWindow* aWin, uint32_t* aId)
nsCOMPtr<nsIDOMWindow> rootWin(do_GetInterface(rootItem));
NS_ENSURE_TRUE(rootWin, NS_ERROR_FAILURE);

nsCOMPtr<nsPIDOMWindow> pwindow(do_QueryInterface(rootWin));
nsCOMPtr<nsPIDOMWindow> outerWindow = pwindow->GetTop();
nsCOMPtr<nsPIDOMWindowOuter> pwindow(do_QueryInterface(rootWin));
nsCOMPtr<nsPIDOMWindowOuter> outerWindow = pwindow->GetTop();
mozilla::dom::AutoNoJSAPI nojsapi;
nsCOMPtr<nsIDOMWindowUtils> utils = do_GetInterface(outerWindow);
uint64_t OuterWindowID = 0;
Expand Down

0 comments on commit 7ca7c54

Please sign in to comment.