From c3bc6f568b0cba2149ce3e3a3e138bf54d82aa79 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 20 Sep 2025 22:18:32 +0200 Subject: Core: Fix clang build on windows --- src/common/Debugging/Windows/WheatyExceptionReport.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/common/Debugging/Windows') diff --git a/src/common/Debugging/Windows/WheatyExceptionReport.cpp b/src/common/Debugging/Windows/WheatyExceptionReport.cpp index 87b7eb6f096..fd233317268 100644 --- a/src/common/Debugging/Windows/WheatyExceptionReport.cpp +++ b/src/common/Debugging/Windows/WheatyExceptionReport.cpp @@ -254,7 +254,7 @@ BOOL WheatyExceptionReport::_GetProcessorName(TCHAR* sProcessorName, DWORD maxco sProcessorName[0] = '\0'; // Skip spaces TCHAR* psz = szTmp; - while (iswspace(*psz)) + while (_istspace(*psz)) ++psz; _tcsncpy(sProcessorName, psz, maxcount); return TRUE; @@ -567,9 +567,10 @@ BOOL WheatyExceptionReport::_GetWindowsVersionFromWMI(TCHAR* szVersion, DWORD cn IWbemClassObject* fields = nullptr; ULONG rows = 0; HRESULT hres = queryResult->Next(WBEM_INFINITE, 1, &fields, &rows); + using wbem_class_object_ptr = com_unique_ptr; return SUCCEEDED(hres) && rows - ? std::pair(com_unique_ptr(fields), rows) - : std::pair(com_unique_ptr(), ULONG(0)); + ? std::pair(wbem_class_object_ptr(fields), rows) + : std::pair(wbem_class_object_ptr(), ULONG(0)); }(); if (!fields || !rows) -- cgit v1.2.3