diff options
| author | Jay Kwak <82421531+jkwak-work@users.noreply.github.com> | 2025-05-02 20:08:49 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-02 20:08:49 +0000 |
| commit | 1b539d8907af3cc77e52e8cf4edf029964e0423a (patch) | |
| tree | eaf344818874cd748d44293b6899a83ef8d87396 /examples/stacktrace-windows | |
| parent | d61296044f760e9f502825ec253a61ce8675257a (diff) | |
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
Diffstat (limited to 'examples/stacktrace-windows')
| -rw-r--r-- | examples/stacktrace-windows/common.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stacktrace-windows/common.cpp b/examples/stacktrace-windows/common.cpp index 98fa8ad78..54cf6622e 100644 --- a/examples/stacktrace-windows/common.cpp +++ b/examples/stacktrace-windows/common.cpp @@ -163,7 +163,7 @@ int exceptionFilter(FILE* logFile, _EXCEPTION_POINTERS* exception) FILE* file = logFile ? logFile : stdout; fprintf( file, - "error: Exception 0x%x occurred. Stack trace:\n", + "error: Exception 0x%lx occurred. Stack trace:\n", exception->ExceptionRecord->ExceptionCode); HANDLE process = GetCurrentProcess(); |
