Kaydet (Commit) 592b43ac authored tarafından Michael Stahl's avatar Michael Stahl

bridges: fix build with --enable-assert-always-abort

Change-Id: I6079481046ca3f7d66975d41fccc15b862a3223b
üst 358ca9ea
...@@ -188,10 +188,9 @@ inline void * ObjectFunction::operator new ( size_t nSize ) ...@@ -188,10 +188,9 @@ inline void * ObjectFunction::operator new ( size_t nSize )
if (pMem != 0) if (pMem != 0)
{ {
DWORD old_protect; DWORD old_protect;
#if OSL_DEBUG_LEVEL > 0
BOOL success = BOOL success =
#endif VirtualProtect(pMem, nSize, PAGE_EXECUTE_READWRITE, &old_protect);
VirtualProtect( pMem, nSize, PAGE_EXECUTE_READWRITE, &old_protect ); (void) success;
assert(success && "VirtualProtect() failed!"); assert(success && "VirtualProtect() failed!");
} }
return pMem; return pMem;
......
...@@ -655,10 +655,9 @@ RaiseInfo::RaiseInfo(typelib_TypeDescription * pTD)throw () ...@@ -655,10 +655,9 @@ RaiseInfo::RaiseInfo(typelib_TypeDescription * pTD)throw ()
& ~static_cast<sal_uInt64>(ExceptionInfos::allocationGranularity - 1); & ~static_cast<sal_uInt64>(ExceptionInfos::allocationGranularity - 1);
DWORD old_protect; DWORD old_protect;
#if OSL_DEBUG_LEVEL > 0
BOOL success = BOOL success =
#endif
VirtualProtect(pCode, codeSize, PAGE_EXECUTE_READWRITE, &old_protect); VirtualProtect(pCode, codeSize, PAGE_EXECUTE_READWRITE, &old_protect);
(void) success;
assert(success && "VirtualProtect() failed!"); assert(success && "VirtualProtect() failed!");
::typelib_typedescription_acquire(pTD); ::typelib_typedescription_acquire(pTD);
......
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