From a25ba712dd2f4dede959b8e84657c4f9e72bf3d2 Mon Sep 17 00:00:00 2001 From: mcbarton <150042563+mcbarton@users.noreply.github.com> Date: Wed, 21 Aug 2024 19:40:48 +0100 Subject: [PATCH] Update CppInterOp.cpp --- lib/Interpreter/CppInterOp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Interpreter/CppInterOp.cpp b/lib/Interpreter/CppInterOp.cpp index d6aa6e8ff..da718bd54 100644 --- a/lib/Interpreter/CppInterOp.cpp +++ b/lib/Interpreter/CppInterOp.cpp @@ -3208,8 +3208,8 @@ namespace Cpp { public: #if defined(_WIN32) StreamCaptureInfo(int FD) : m_FD(FD) { - - if (!m_TempFile) { + err = tmpfile_s(&m_TempFile); + if (!err) { perror("StreamCaptureInfo: Unable to create temp file"); return; }