Sfoglia il codice sorgente

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 anni fa
parent
commit
f9fa9c289f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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,