From 8134b8afda4410dcd0cd599a176d165007461f73 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Tue, 5 Feb 2019 00:29:29 -0800 Subject: [PATCH] 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. --- libobs/util/platform-windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libobs/util/platform-windows.c b/libobs/util/platform-windows.c index 265dce068..473d2167d 100644 --- a/libobs/util/platform-windows.c +++ b/libobs/util/platform-windows.c @@ -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;