From 5d87cd2b1c90175a34063e43a17be22df671fbe1 Mon Sep 17 00:00:00 2001 From: Alex Alabuzhev Date: Sat, 28 Dec 2024 22:30:48 +0000 Subject: [PATCH] Fix build --- far/vc_crt_fix_impl.cpp | 2 ++ plugins/common/vc_crt_fix_impl.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/far/vc_crt_fix_impl.cpp b/far/vc_crt_fix_impl.cpp index aba05b9bfa..fbe06c2da3 100644 --- a/far/vc_crt_fix_impl.cpp +++ b/far/vc_crt_fix_impl.cpp @@ -184,6 +184,7 @@ extern "C" PSLIST_ENTRY WINAPI WRAPPER(InterlockedFlushSList)(PSLIST_HEADER List #ifdef _WIN64 // The oldest x64 OS (XP) already has SList, so this shall never be called. DebugBreak(); + return {}; #else if (!ListHead->Next.Next) return {}; @@ -214,6 +215,7 @@ extern "C" PSLIST_ENTRY WINAPI WRAPPER(InterlockedPushEntrySList)(PSLIST_HEADER #ifdef _WIN64 // The oldest x64 OS (XP) already has SList, so this shall never be called. DebugBreak(); + return {}; #else SLIST_HEADER OldHeader, NewHeader; NewHeader.Next.Next = ListEntry; diff --git a/plugins/common/vc_crt_fix_impl.cpp b/plugins/common/vc_crt_fix_impl.cpp index aba05b9bfa..fbe06c2da3 100644 --- a/plugins/common/vc_crt_fix_impl.cpp +++ b/plugins/common/vc_crt_fix_impl.cpp @@ -184,6 +184,7 @@ extern "C" PSLIST_ENTRY WINAPI WRAPPER(InterlockedFlushSList)(PSLIST_HEADER List #ifdef _WIN64 // The oldest x64 OS (XP) already has SList, so this shall never be called. DebugBreak(); + return {}; #else if (!ListHead->Next.Next) return {}; @@ -214,6 +215,7 @@ extern "C" PSLIST_ENTRY WINAPI WRAPPER(InterlockedPushEntrySList)(PSLIST_HEADER #ifdef _WIN64 // The oldest x64 OS (XP) already has SList, so this shall never be called. DebugBreak(); + return {}; #else SLIST_HEADER OldHeader, NewHeader; NewHeader.Next.Next = ListEntry;