Commit 4b9df7ea by Abseil Team Committed by Copybara-Service

Fix log StrippingTest on windows when TCHAR = WCHAR

PiperOrigin-RevId: 471622229
Change-Id: I787e0da71eaa1f99cc41b7950f93a43c6cced0ed
parent b677bd13
......@@ -227,7 +227,7 @@ class StrippingTest : public ::testing::Test {
path.resize(path.size() * 2, _T('\0'));
}
std::unique_ptr<FILE, std::function<void(FILE*)>> fp(
_tfopen(path.c_str(), "rb"), [](FILE* fp) { fclose(fp); });
_tfopen(path.c_str(), _T("rb")), [](FILE* fp) { fclose(fp); });
if (!fp) absl::FPrintF(stderr, "Failed to open executable\n");
return fp;
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment