Skip to content

Commit e932fe8

Browse files
authored
[compiler-rt][Fuzzer] fix windows typo (#84407)
1 parent 487cfbe commit e932fe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ void SetThreadName(std::thread &thread, const std::string &name) {
243243
HMODULE kbase = GetModuleHandleA("KernelBase.dll");
244244
proc ThreadNameProc =
245245
reinterpret_cast<proc>(GetProcAddress(kbase, "SetThreadDescription"));
246-
if (proc) {
246+
if (ThreadNameProc) {
247247
std::wstring buf;
248248
auto sz = MultiByteToWideChar(CP_UTF8, 0, name.data(), -1, nullptr, 0);
249249
if (sz > 0) {

0 commit comments

Comments
 (0)