Przeglądaj źródła

win-capture: Do not load 64bit hook offsets on 32bit systems

jp9000 9 lat temu
rodzic
commit
35285a26b7
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      plugins/win-capture/load-graphics-offsets.c

+ 6 - 0
plugins/win-capture/load-graphics-offsets.c

@@ -162,6 +162,12 @@ bool load_graphics_offsets(bool is32bit)
 	bool success = false;
 	char data[128];
 
+#ifndef _WIN64
+	if (!is32bit && !is_64_bit_windows()) {
+		return true;
+	}
+#endif
+
 	dstr_copy(&offset_exe, "get-graphics-offsets");
 	dstr_cat(&offset_exe, is32bit ? "32.exe" : "64.exe");
 	offset_exe_path = obs_module_file(offset_exe.array);