diff --git a/src/node_os.cc b/src/node_os.cc index e4d90234b97ab2..a63f77b1e5520b 100644 --- a/src/node_os.cc +++ b/src/node_os.cc @@ -106,12 +106,12 @@ static void GetOSRelease(const FunctionCallbackInfo& args) { return env->ThrowErrnoException(errno, "uname"); } rval = info.release; -#else // __MINGW32__ +#else // Windows char release[256]; - OSVERSIONINFO info; + OSVERSIONINFOW info; info.dwOSVersionInfoSize = sizeof(info); - if (GetVersionEx(&info) == 0) + if (GetVersionExW(&info) == 0) return; snprintf(release,