From f9fa9c289f7b3c0d6e98dae0f2989a143fd551e7 Mon Sep 17 00:00:00 2001 From: martell Date: Thu, 5 Feb 2015 03:49:01 +0000 Subject: [PATCH] libobs: fix warning when logging the win version The OSVERSIONINFOW structure contains DWORD variables, so to keep mingw happy this should be printed with %ld --- libobs/obs-windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libobs/obs-windows.c b/libobs/obs-windows.c index 4b0c39f03..48c54c452 100644 --- a/libobs/obs-windows.c +++ b/libobs/obs-windows.c @@ -193,7 +193,7 @@ static void log_windows_version(void) GetVersionExW(&osvi); os_wcs_to_utf8_ptr(osvi.szCSDVersion, 0, &build); - blog(LOG_INFO, "Windows Version: %u.%u Build %u %s", + blog(LOG_INFO, "Windows Version: %ld.%ld Build %ld %s", osvi.dwMajorVersion, osvi.dwMinorVersion, osvi.dwBuildNumber,