From 108509a089e27df4d2d9504f864568811e4bf32d Mon Sep 17 00:00:00 2001 From: Robin Mills Date: Wed, 28 Nov 2018 12:15:13 +0000 Subject: [PATCH] Correction to Microsoft sample code! https://docs.microsoft.com/en-gb/windows/desktop/Services/installing-a-service --- src/futils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/futils.cpp b/src/futils.cpp index b90246f1..18e4b9f1 100644 --- a/src/futils.cpp +++ b/src/futils.cpp @@ -465,7 +465,7 @@ namespace Exiv2 { std::string ret("unknown"); #if defined(WIN32) TCHAR filename[MAX_PATH]; - if ( GetModuleFileName( "", filename, MAX_PATH ) != 0 ) { + if ( GetModuleFileName( (HMODULE)"", filename, MAX_PATH ) != 0 ) { ret = filename; } #elif defined(__APPLE__)