Skip to content

Commit

Permalink
added Server 03/08 checks
Browse files Browse the repository at this point in the history
  • Loading branch information
woodruffw committed Aug 9, 2014
1 parent 98bcf20 commit a579ac1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/screenfetch-c.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,11 @@ void detect_distro(char* str)
safe_strncpy(str, "Microsoft Windows Vista", MAX_STRLEN);
#elif defined(NTDDI_WINXP) || defined(NTDDI_WINXPSP1) || defined(NTDDI_WINXPSP2) || defined(NTDDI_WINXPSP3)
safe_strncpy(str, "Microsoft Windows XP", MAX_STRLEN);
#else /* might add Server 03/08 conditions later */
#elif defined(_WIN32_WINNT_WS03)
safe_strncpy(str, "Microsoft Windows Server 2003", MAX_STRLEN);
#elif defined(_WIN32_WINNT_WS08)
safe_strncpy(str, "Microsoft Windows Server 2008", MAX_STRLEN);
#else
safe_strncpy(str, "Microsoft Windows", MAX_STRLEN);
#endif
}
Expand Down

0 comments on commit a579ac1

Please sign in to comment.