From 1b539d8907af3cc77e52e8cf4edf029964e0423a Mon Sep 17 00:00:00 2001 From: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> Date: Fri, 2 May 2025 20:08:49 +0000 Subject: Fix intermittent failure of slang-unit-test-tool/ReplayRecord (#6981) * Fix intermittent failure of slang-unit-test-tool/ReplayRecord Three problems are addressed: 1. the graphics driver sometimes returns nullptr from GetShaderIdentifier 2. `findRecordFileName()` may not find any records at all. 3. the return value from cleanupRecordFiles() overwrote the error value in `res` and it returned SLANG_OK even when there were errors. * Fix compiler warnings on Windows --- examples/example-winmain/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/example-winmain/main.cpp') diff --git a/examples/example-winmain/main.cpp b/examples/example-winmain/main.cpp index 8094e7fc4..a64328105 100644 --- a/examples/example-winmain/main.cpp +++ b/examples/example-winmain/main.cpp @@ -1,3 +1,4 @@ +#define _CRT_SECURE_NO_WARNINGS #include "../stacktrace-windows/common.h" #include -- cgit v1.2.3