diff --git a/src/PlugIn.cpp b/src/PlugIn.cpp index cbbd9bf..02b0dcd 100644 --- a/src/PlugIn.cpp +++ b/src/PlugIn.cpp @@ -68,7 +68,7 @@ PlugIn::PlugIn() : /* get the dll-path */ char path[MAX_PATH + 1] = { 0 }; const gsl::span span(path); - GetModuleFileNameA(gsl::narrow_cast(&__ImageBase), span.data(), span.size()); + GetModuleFileNameA((HINSTANCE)&__ImageBase, span.data(), span.size()); PathRemoveFileSpecA(span.data()); std::string dllPath = span.data();