I guess
What you have looks like a Rust wrapper to the COM interface.
schmeling65
well I found that https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/Media/Audio/DirectSound/struct.IDirectSoundFXI3DL2Reverb.html
schmeling65
But not sure if that is what helps us here
adrientd
Actual documentation is here: https://learn.microsoft.com/en-us/previous-versions/windows/desktop/ee418231(v=vs.85)
schmeling65
`DEFINE_GUID` could be interessting. As it does *something* with it
adrientd
But yeah I don't think the reverb thing is the actual issue.
It's more like the object that the game tries to obtain the reverb stuff does not actually exist.
schmeling65
possible. I could still be wrong from some reason, but just being wrong doesn't make it crash. It also needs to do something with it and I think that could be inside the DEFINE_GUID method.
Also all these other parameters are... interessting. No idea what they do
adrientd
If we look the function that calls the function where it crashes, we see that it calls `GetForegroundWindow`window.
Maybe it's to check if the game's window has the focus or not? So the game mutes the sound/music if you switch to another window.
adrientd
yellow highlight is the call to the crashing function
schmeling65
It gets the Foreground-window, then executes a function with 2 parameters, decrements a pointer by one which is the destination-pointer + 0x36, then tests something, mostlikely if it is not null or something like that, does then another test if a value at a pointer is 15, does **another** test with the same one if it is 7, and **another** test if it is 8 and then leads to the crash-section
adrientd
the `test` instruction is a binary AND, so it's to check for the presence of bits
pegperegogaucho
Good work so far guys!
adrientd
but yeah, what values are stored in the addresses is quite hard to see, the best would be to debug and step through each instruction
schmeling65
I mean... we could try it with me. I have the x32 debugger installed for other reasons lol but I am not getting that crash
adrientd
Hmm yeah we would need someone to debug on Windows 11
schmeling65
*Windows 11 24H2 with the most recent updates
schmeling65
I am on Windows 11 23H2 with the recent updates
adrientd
My PC is almost 8 years and I cannot update
adrientd
Even Windows Update broke
schmeling65
I could update but somehow I didn't want to and after reading everything about 24H2 I am not if I should