Correction to Microsoft sample code! https://docs.microsoft.com/en-gb/windows/desktop/Services/installing-a-service
This commit is contained in:
parent
9cb6c1e4c9
commit
108509a089
@ -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__)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user