Browse Source

Ignore irrelevant assertion when quitting windows bridge

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.3.0-RC1
falkTX 3 years ago
parent
commit
bb87de9b34
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      source/utils/CarlaShmUtils.hpp

+ 4
- 2
source/utils/CarlaShmUtils.hpp View File

@@ -132,7 +132,9 @@ void carla_shm_close(carla_shm_t& shm) noexcept
{
CARLA_SAFE_ASSERT_RETURN(carla_is_shm_valid(shm),);
#ifdef CARLA_OS_WIN
CARLA_SAFE_ASSERT(shm.map == INVALID_HANDLE_VALUE);
if (shm.isServer) {
CARLA_SAFE_ASSERT(shm.map == INVALID_HANDLE_VALUE);
}
#endif

#ifdef CARLA_OS_WIN
@@ -248,7 +250,7 @@ void carla_shm_unmap(carla_shm_t& shm, void* const ptr) noexcept

try {
#ifdef CARLA_OS_WIN
const HANDLE map(shm.map);
const HANDLE map = shm.map;
shm.map = INVALID_HANDLE_VALUE;

::UnmapViewOfFile(ptr);


Loading…
Cancel
Save