This commit is contained in:
Henrik Rydgård committed 2025-08-24 15:46:35 +02:00
1 parent 7315e7a2a9
commit 93638c8826
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -209,7 +209,7 @@ void SetCurrentThreadNameThroughException(const char *threadName) {
void AssertCurrentThreadName(const char *threadName) {
#ifdef TLS_SUPPORTED
if (strcmp(curThreadName, threadName) != 0) {
if (curThreadName && strcmp(curThreadName, threadName) != 0) {
ERROR_LOG(Log::System, "Thread name assert failed: Expected %s, was %s", threadName, curThreadName);
_dbg_assert_msg_(false, "Thread name assert failed: Expected %s, was %s", threadName, curThreadName);
}