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
parent
e6c719a1dd
commit
8134b8afda
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue