瀏覽代碼

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
martell 10 年之前
父節點
當前提交
f9fa9c289f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libobs/obs-windows.c

+ 1 - 1
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,