Fix getProcessPath()

This commit is contained in:
clanmills
2018-11-15 08:04:47 +00:00
committed by Luis Díaz Más
parent e66c832008
commit 2f70ae4305
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -463,7 +463,7 @@ namespace Exiv2 {
std::string getProcessPath()
{
std::string ret("unknown");
#if defined(WIN32)
#if defined(WIN32) || defined (__CYGWIN__) || defined(__MINGW__)
HANDLE processHandle = NULL;
processHandle = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, GetCurrentProcessId());
if (processHandle != NULL) {