Skip to content

Commit 0ce7b91

Browse files
committed
win: use GetVersionExW instead of GetVersionExA
For consistency with the rest of the source code, use the wide-char version of this API. PR-URL: nodejs#261 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
1 parent e705627 commit 0ce7b91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/node_os.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ static void GetOSRelease(const FunctionCallbackInfo<Value>& args) {
106106
return env->ThrowErrnoException(errno, "uname");
107107
}
108108
rval = info.release;
109-
#else // __MINGW32__
109+
#else // Windows
110110
char release[256];
111-
OSVERSIONINFO info;
111+
OSVERSIONINFOW info;
112112

113113
info.dwOSVersionInfoSize = sizeof(info);
114-
if (GetVersionEx(&info) == 0)
114+
if (GetVersionExW(&info) == 0)
115115
return;
116116

117117
snprintf(release,

0 commit comments

Comments
 (0)