mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-24 23:08:51 -04:00
win-capture: Do not load 64bit hook offsets on 32bit systems
This commit is contained in:
1 parent
67e9cafaba
commit
35285a26b7
1 file changed
+6
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user