Bug 606976 - Don't map the memory from a SharedDIB: CreateDIBSection creates another mapping, and we don't actually use the mapping for anything, r=jimm

This commit is contained in:
Benjamin Smedberg 2010-10-25 13:22:43 -04:00
parent dc418f86d1
commit 04b10237dd

View File

@ -60,10 +60,6 @@ SharedDIB::Create(PRUint32 aSize)
if (!mShMem || !mShMem->Create("", false, false, aSize))
return NS_ERROR_OUT_OF_MEMORY;
// Map the entire section
if (!mShMem->Map(0))
return NS_ERROR_FAILURE;
return NS_OK;
}
@ -96,9 +92,6 @@ SharedDIB::Attach(Handle aHandle, PRUint32 aSize)
if(!mShMem)
return NS_ERROR_OUT_OF_MEMORY;
if (!mShMem->Map(aSize))
return NS_ERROR_FAILURE;
return NS_OK;
}