From 48994f6522fd2f2ab801a81231800ec3fe7b9e8c Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 6 May 2023 15:15:42 +0200 Subject: [PATCH] Fix carla_shm_create_temp for unicode windows builds Signed-off-by: falkTX --- source/utils/CarlaShmUtils.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/utils/CarlaShmUtils.hpp b/source/utils/CarlaShmUtils.hpp index 67ad12ccd..6d6a74e89 100644 --- a/source/utils/CarlaShmUtils.hpp +++ b/source/utils/CarlaShmUtils.hpp @@ -1,6 +1,6 @@ /* * Carla shared memory utils - * Copyright (C) 2013-2015 Filipe Coelho + * Copyright (C) 2013-2023 Filipe Coelho * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -312,8 +312,8 @@ carla_shm_t carla_shm_create_temp(char* const fileBase) noexcept #ifdef CARLA_OS_WIN // Windows: check if file already exists - const HANDLE h = ::CreateFileMapping(INVALID_HANDLE_VALUE, nullptr, - PAGE_READWRITE|SEC_COMMIT, 0, 8, fileBase); + const HANDLE h = ::CreateFileMappingA(INVALID_HANDLE_VALUE, nullptr, + PAGE_READWRITE|SEC_COMMIT, 0, 8, fileBase); if (h == INVALID_HANDLE_VALUE) {