Skip to content

Commit

Permalink
[compiler-rt][Fuzzer] fix windows typo (#84407)
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Mar 8, 2024
1 parent 487cfbe commit e932fe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e932fe8

Please sign in to comment.