Closed falkTX closed 1 year ago
GetModuleFileName
NULL
DllMain
getenv
GetEnvironmentVariableW
with this the plugin loads without crashes and seems to work as intended even in mod-app. but I didnt test much
Thanks for the fixes!
GetModuleFileName
usedNULL
, which would get the standalone/host path, not the plugin path. we need to get the handle from theDllMain
functionGetModuleFileName
was used the ANSI variant, which breaks for any special characters, we should switch to use wide-char API variantsgetenv
on windows does not work as we expect, and also has same ANSI variant issues, prefer to useGetEnvironmentVariableW
with this the plugin loads without crashes and seems to work as intended even in mod-app. but I didnt test much