plugins/consoles/nullcons/src/nullcons.cpp
changeset 83 706c7a69e448
parent 0 7f656887cf89
--- a/plugins/consoles/nullcons/src/nullcons.cpp	Thu Nov 04 20:51:05 2010 +0000
+++ b/plugins/consoles/nullcons/src/nullcons.cpp	Thu Nov 04 23:22:39 2010 +0000
@@ -13,6 +13,7 @@
 #include <e32std.h>
 #include <e32cons.h>
 #include <e32keys.h>
+#include <fshell/consoleextensions.h>
 
 NONSHARABLE_CLASS(CNullConsole) : public CConsoleBase
 	{
@@ -33,6 +34,7 @@
 	virtual TSize ScreenSize() const;
 	virtual TKeyCode KeyCode() const;
 	virtual TUint KeyModifiers() const;
+	virtual TInt Extension_(TUint aExtensionId, TAny*& a0, TAny* a1);
 	};
 
 CNullConsole::CNullConsole()
@@ -106,6 +108,17 @@
 	return 0;
 	}
 
+TInt CNullConsole::Extension_(TUint aExtensionId, TAny*& a0, TAny* a1)
+	{
+	if (aExtensionId == ConsoleSize::KConsoleSizeReportedCorrectlyExtension)
+		{
+		// No point attempting size detection on nullcons
+		return KErrNone;
+		}
+
+	return CConsoleBase::Extension_(aExtensionId, a0, a1);
+	}
+
 extern "C" EXPORT_C TAny *NewConsole()
 	{
 	return(new CNullConsole);