Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bnoordhuis committed Aug 9, 2013
1 parent f674b09 commit a86d319
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/node.cc
Expand Up @@ -2151,7 +2151,12 @@ static void EnvEnumerator(const PropertyCallbackInfo<Array>& info) {
s = p + wcslen(p);
}
const uint16_t* two_byte_buffer = reinterpret_cast<const uint16_t*>(p);
env->Set(i++, TWO_BYTE_STRING(node_isolate, two_byte_buffer, s - p));
const size_t two_byte_buffer_len = s - p;
Local<String> 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);
Expand Down

0 comments on commit a86d319

Please sign in to comment.