libobs/util: Fix bug with get_winver

get_winver is supposed to return a 16bit value in a format equivalent to
0xMMmm (Major minor).  It was returning 0xMM00mm incorrectly instead.
master
jp9000 2019-02-05 00:29:29 -08:00
parent e6c719a1dd
commit 8134b8afda
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ static inline uint32_t get_winver(void)
if (!winver) {
struct win_version_info ver;
get_win_ver(&ver);
winver = (ver.major << 16) | ver.minor;
winver = (ver.major << 8) | ver.minor;
}
return winver;