Skip to content

Commit 44a5b73

Browse files
bl-ueBridgeAR
authored andcommitted
src: do not compare against wide characters
PR-URL: #32921 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: Zeyu Yang <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]>
1 parent 02653b8 commit 44a5b73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node_env_var.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void RealEnvStore::Set(Isolate* isolate,
121121
node::Utf8Value val(isolate, value);
122122

123123
#ifdef _WIN32
124-
if (key.length() > 0 && key[0] == L'=') return;
124+
if (key.length() > 0 && key[0] == '=') return;
125125
#endif
126126
uv_os_setenv(*key, *val);
127127
DateTimeConfigurationChangeNotification(isolate, key);
@@ -139,7 +139,7 @@ int32_t RealEnvStore::Query(const char* key) const {
139139
}
140140

141141
#ifdef _WIN32
142-
if (key[0] == L'=') {
142+
if (key[0] == '=') {
143143
return static_cast<int32_t>(v8::ReadOnly) |
144144
static_cast<int32_t>(v8::DontDelete) |
145145
static_cast<int32_t>(v8::DontEnum);

0 commit comments

Comments
 (0)