Explorar o código

fix compiler issues

Sven Czarnian %!s(int64=3) %!d(string=hai) anos
pai
achega
6152c40dca
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/PlugIn.cpp

+ 1 - 1
src/PlugIn.cpp

@@ -68,7 +68,7 @@ PlugIn::PlugIn() :
     /* get the dll-path */
     char path[MAX_PATH + 1] = { 0 };
     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());
     std::string dllPath = span.data();