From 6aefe289afb0935048df23b75ed2adc4139119d3 Mon Sep 17 00:00:00 2001 From: "timeless%mac.com" Date: Sun, 20 Jan 2002 23:15:31 +0000 Subject: [PATCH] [Bug 121003] Silly code checks for if (interfaceName) instead of if (instanceName) r=bzbarsky sr=brendan@mozilla.org a=brendan@mozilla.org --- embedding/tests/winEmbed/winEmbed.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embedding/tests/winEmbed/winEmbed.cpp b/embedding/tests/winEmbed/winEmbed.cpp index 6f990aff168..352a9a33722 100644 --- a/embedding/tests/winEmbed/winEmbed.cpp +++ b/embedding/tests/winEmbed/winEmbed.cpp @@ -533,7 +533,7 @@ void UpdateUI(nsIWebBrowserChrome *aChrome) PRBool canPaste = PR_FALSE; nsCOMPtr clipCmds = do_GetInterface(webBrowser); - if (nsIClipboardCommands) + if (clipCmds) { clipCmds->CanCutSelection(&canCutSelection); clipCmds->CanCopySelection(&canCopySelection);