diff options
author | Abseil Team <absl-team@google.com> | 2022-09-01 13:46:56 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-09-01 13:48:24 -0700 |
commit | 4b9df7eade4f0ce9ef3ab726e97d909a9e2e7ed9 (patch) | |
tree | 80fd77861165b7c000ff04cc79b1e8873cae6a9d | |
parent | b677bd139dc020f1137a5cc9470a66bcad61829c (diff) |
Fix log StrippingTest on windows when TCHAR = WCHAR
PiperOrigin-RevId: 471622229
Change-Id: I787e0da71eaa1f99cc41b7950f93a43c6cced0ed
-rw-r--r-- | absl/log/stripping_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/log/stripping_test.cc b/absl/log/stripping_test.cc index 1672e3af..f37a0c55 100644 --- a/absl/log/stripping_test.cc +++ b/absl/log/stripping_test.cc @@ -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 |