From 6152c40dcafebf4a54440daf9dea21d49aa89a6a Mon Sep 17 00:00:00 2001 From: Sven Czarnian Date: Thu, 2 Dec 2021 19:06:13 +0100 Subject: [PATCH] fix compiler issues --- src/PlugIn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();