You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently, it is not possible to call DetourCreateProcessWithDllsW with wide character dll names, because DetourCreateProcessWithDllsW uses LPCSTR and StringCchLengthA to count the dll name length. Please change the DetourCreateProcessWithDllsW, so that it can consume wide chars for dll names respectively.
I think it comes down to UPDATE_IMPORTS_XX in uimports.cpp. Unfortunately, I do not know enough of process structure to guess what you would need to do with this for it to work with wide LPCWSTRs.
In my case I currently just copy the DLL to the target directory if needed, though have also considered using subst.
use LPCSTR is because createwth.cpp use IAT to inject your dlls to destination process, so the imported dll name items must be ANSI version string,so it is not a problem.
Hello Detours Team,
currently, it is not possible to call DetourCreateProcessWithDllsW with wide character dll names, because DetourCreateProcessWithDllsW uses LPCSTR and StringCchLengthA to count the dll name length. Please change the DetourCreateProcessWithDllsW, so that it can consume wide chars for dll names respectively.
Thank you!
Detours/src/creatwth.cpp
Line 1505 in edc8b07
The text was updated successfully, but these errors were encountered: