Skip to content

Commit 45eb602

Browse files
committed
[fuzzer] Try to fix windows build after D156317
1 parent 80e5b46 commit 45eb602

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,10 @@ void SetThreadName(std::thread &thread, const std::string &name) {
237237
std::wstring wname;
238238
auto sz = MultiByteToWideChar(CP_UTF8, 0, name.data(), name.size(), nullptr, 0);
239239
wname.resize(sz);
240-
if (sz == MultiByteToWideChar(CP_UTF8, 0, name.data, name.size, &wname[0], sz) > 0) {
241-
wname.resize(sz - 1);
242-
(void)SetThreadDescription(thread.native_handle(), wname.c_str());
240+
if (sz == MultiByteToWideChar(CP_UTF8, 0, name.data(), name.size(), &wname[0],
241+
sz) > 0) {
242+
wname.resize(sz - 1);
243+
(void)SetThreadDescription(thread.native_handle(), wname.c_str());
243244
}
244245
}
245246

0 commit comments

Comments
 (0)