about summary refs log tree commit diff
path: root/absl/base/internal/scoped_set_env_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'absl/base/internal/scoped_set_env_test.cc')
-rw-r--r--absl/base/internal/scoped_set_env_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/base/internal/scoped_set_env_test.cc b/absl/base/internal/scoped_set_env_test.cc
index 4bd68c48b944..5cbad246c647 100644
--- a/absl/base/internal/scoped_set_env_test.cc
+++ b/absl/base/internal/scoped_set_env_test.cc
@@ -26,8 +26,8 @@ using absl::base_internal::ScopedSetEnv;
 std::string GetEnvVar(const char* name) {
 #ifdef _WIN32
   char buf[1024];
-  auto get_res = GetEnvironmentVariable(name, buf, sizeof(buf));
-  if (get_res == sizeof(buf)) {
+  auto get_res = GetEnvironmentVariableA(name, buf, sizeof(buf));
+  if (get_res >= sizeof(buf)) {
     return "TOO_BIG";
   }