Skip to content

Commit

Permalink
win: use GetVersionExW instead of GetVersionExA
Browse files Browse the repository at this point in the history
For consistency with the rest of the source code, use the wide-char
version of this API.

PR-URL: #261
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
piscisaureus committed Jan 8, 2015
1 parent e705627 commit 0ce7b91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/node_os.cc
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ static void GetOSRelease(const FunctionCallbackInfo<Value>& 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,
Expand Down

0 comments on commit 0ce7b91

Please sign in to comment.