win-capture: Hook Reset/ResetEx in Present* funcs
The virtual address table values for Reset/ResetEx can sometimes point to functions that are in libraries outside of D3D8.dll and D3D9.dll, and will cause a crash if used. Instead, just hook Reset/ResetEx when one of the Present* functions are called.
This commit is contained in:
@@ -27,15 +27,12 @@
|
||||
|
||||
struct d3d8_offsets {
|
||||
uint32_t present;
|
||||
uint32_t reset;
|
||||
};
|
||||
|
||||
struct d3d9_offsets {
|
||||
uint32_t present;
|
||||
uint32_t present_ex;
|
||||
uint32_t present_swap;
|
||||
uint32_t reset;
|
||||
uint32_t reset_ex;
|
||||
};
|
||||
|
||||
struct dxgi_offsets {
|
||||
|
Reference in New Issue
Block a user