diff options
author | David CARLIER <devnexen@gmail.com> | 2024-03-08 00:15:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 00:15:22 +0000 |
commit | e932fe880b69a6cd13b4f29678c7f143540f1999 (patch) | |
tree | a3bdbe21d3d98de962d21bea1f17f4d92e7cb86a /compiler-rt | |
parent | 487cfbe494413e12123b55dead5ef8742ef49fb2 (diff) | |
download | llvm-e932fe880b69a6cd13b4f29678c7f143540f1999.zip llvm-e932fe880b69a6cd13b4f29678c7f143540f1999.tar.gz llvm-e932fe880b69a6cd13b4f29678c7f143540f1999.tar.bz2 |
[compiler-rt][Fuzzer] fix windows typo (#84407)
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp b/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp index 0dbcec8..db80eb3 100644 --- a/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp +++ b/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp @@ -243,7 +243,7 @@ void SetThreadName(std::thread &thread, const std::string &name) { HMODULE kbase = GetModuleHandleA("KernelBase.dll"); proc ThreadNameProc = reinterpret_cast<proc>(GetProcAddress(kbase, "SetThreadDescription")); - if (proc) { + if (ThreadNameProc) { std::wstring buf; auto sz = MultiByteToWideChar(CP_UTF8, 0, name.data(), -1, nullptr, 0); if (sz > 0) { |