mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
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:
parent
dc418f86d1
commit
04b10237dd
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user