LoadLibraryA expects a null-terminated string. I noticed this issue with proxygen and realised it might also be a problem here.
This PR simply pushes a null byte to the end of the path passed to LoadLibraryA.
Additionally, I thought it'd be a good idea to also use INFO_BUFFER_SIZE (32767) as the buffer size when getting the current DLL path.
Testing
I was able to reproduce it happening once in quite a few launches, and afterwards I was able to launch a few times without it happening. Should be fine.
Hi!
LoadLibraryA
expects a null-terminated string. I noticed this issue withproxygen
and realised it might also be a problem here. This PR simply pushes a null byte to the end of the path passed toLoadLibraryA
. Additionally, I thought it'd be a good idea to also useINFO_BUFFER_SIZE
(32767) as the buffer size when getting the current DLL path.Testing I was able to reproduce it happening once in quite a few launches, and afterwards I was able to launch a few times without it happening. Should be fine.
Fixes #632