Kaydet (Commit) 38747916 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Make LineTest::testCornerCases succeed again after last basebmp fix.

Though it looks wrong that rtl_allocateMemory(0) == 0.
üst ab96f8a7
......@@ -1889,7 +1889,7 @@ BitmapDeviceSharedPtr createBitmapDeviceImpl( const basegfx::B2IVector&
pMem.reset(
reinterpret_cast<sal_uInt8*>(rtl_allocateMemory( nMemSize )),
&rtl_freeMemory );
if (!pMem.get())
if (pMem.get() == 0 && nMemSize != 0)
return BitmapDeviceSharedPtr();
rtl_zeroMemory(pMem.get(),nMemSize);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment