From 78f709d0d431638a555391c6ec5444be49685c10 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 9 Aug 2013 17:43:10 +0200 Subject: [PATCH] src: fix windows build breakage from f674b09 The TWO_BYTE_BUFFER macro never made it into the final version of the patch that got landed in commit f674b09. --- src/node.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/node.cc b/src/node.cc index 8c1653a4e9..a1e3fea919 100644 --- a/src/node.cc +++ b/src/node.cc @@ -2151,7 +2151,12 @@ static void EnvEnumerator(const PropertyCallbackInfo& info) { s = p + wcslen(p); } const uint16_t* two_byte_buffer = reinterpret_cast(p); - env->Set(i++, TWO_BYTE_STRING(node_isolate, two_byte_buffer, s - p)); + const size_t two_byte_buffer_len = s - p; + Local value = String::NewFromTwoByte(node_isolate, + two_byte_buffer, + String::kNormalString, + two_byte_buffer_len); + env->Set(i++, value); p = s + wcslen(s) + 1; } FreeEnvironmentStringsW(environment);