Bug 522299 - fix linux bustage.
authorJim Mathies <jmathies@mozilla.com>
Tue, 01 Dec 2009 16:26:45 -0600
changeset 36127 9d2bd5bb53a2c396e5fe6de425f5612bf860f693
parent 36126 7d9f0fb8ccda9c553cf110d444408c7556beb8b0
child 36128 be9813c67107df2c0ba2a95480ee4e3d56b5a9eb
push id10694
push userbsmedberg@mozilla.com
push dateMon, 14 Dec 2009 15:23:10 +0000
treeherdermozilla-central@683dfdc4adf0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs522299
milestone1.9.3a1pre
Bug 522299 - fix linux bustage.
gfx/ipc/SharedDIB.cpp
--- a/gfx/ipc/SharedDIB.cpp
+++ b/gfx/ipc/SharedDIB.cpp
@@ -68,17 +68,17 @@ SharedDIB::Create(PRUint32 aSize)
 }
 
 bool
 SharedDIB::IsValid()
 {
   if (!mShMem)
     return false;
 
-  return (mShMem->handle() != mShMem->NULLHandle() ? true : false);
+  return mShMem->IsHandleValid(mShMem->handle());
 }
 
 nsresult
 SharedDIB::Close()
 {
   if (mShMem)
     delete mShMem;