Skip to content

Commit

Permalink
include build number in os_release() on Windows
Browse files Browse the repository at this point in the history
For compatibility with libuv's `uv_os_uname()` function.
  • Loading branch information
bnoordhuis authored and FillZpp committed Mar 2, 2020
1 parent 22127e8 commit c57017c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions c/windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const char *get_os_release(void) {
osvi.dwOSVersionInfoSize = sizeof(osvi);

if (GetVersionEx(&osvi))
snprintf(s, LEN, "%d.%d",
osvi.dwMajorVersion, osvi.dwMinorVersion);
snprintf(s, LEN, "%d.%d.%d",
osvi.dwMajorVersion, osvi.dwMinorVersion, osvi.dwBuildNumber);
else
strncpy(s, "unknown", LEN);
s[LEN - 1] = '\0';
Expand Down

0 comments on commit c57017c

Please sign in to comment.