r= jdunn@netscape.com
OS/2 changes for Mozilla
This commit is contained in:
mkaply%us.ibm.com 2006-02-16 21:31:34 +00:00
parent 7898814187
commit 32801b446e

View File

@ -39,7 +39,7 @@ nsDeviceContextSpecFactoryOS2::nsDeviceContextSpecFactoryOS2()
NS_INIT_REFCNT();
}
NS_IMPL_ISUPPORTS(nsDeviceContextSpecFactoryOS2, NS_GET_IID(nsIDeviceContextSpecFactory))
NS_IMPL_ISUPPORTS(nsDeviceContextSpecFactoryOS2, nsIDeviceContextSpecFactory::GetIID())
NS_IMETHODIMP nsDeviceContextSpecFactoryOS2::Init()
{
@ -59,6 +59,8 @@ NS_IMETHODIMP nsDeviceContextSpecFactoryOS2::CreateDeviceContextSpec(
if( pq)
{
nsDeviceContextSpecOS2 *spec = new nsDeviceContextSpecOS2;
if (!spec)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(spec);
spec->Init( pq);
aNewSpec = spec;