fix compiler issues

This commit is contained in:
Sven Czarnian
2021-12-02 19:06:13 +01:00
parent 95493674e8
commit 6152c40dca

View File

@@ -68,7 +68,7 @@ PlugIn::PlugIn() :
/* get the dll-path */ /* get the dll-path */
char path[MAX_PATH + 1] = { 0 }; char path[MAX_PATH + 1] = { 0 };
const gsl::span<char, MAX_PATH + 1> span(path); const gsl::span<char, MAX_PATH + 1> span(path);
GetModuleFileNameA(gsl::narrow_cast<HINSTANCE>(&__ImageBase), span.data(), span.size()); GetModuleFileNameA((HINSTANCE)&__ImageBase, span.data(), span.size());
PathRemoveFileSpecA(span.data()); PathRemoveFileSpecA(span.data());
std::string dllPath = span.data(); std::string dllPath = span.data();