Fix getProcessPath()

v0.27.3
clanmills 7 years ago committed by Luis Díaz Más
parent e66c832008
commit 2f70ae4305

@ -463,7 +463,7 @@ namespace Exiv2 {
std::string getProcessPath() std::string getProcessPath()
{ {
std::string ret("unknown"); std::string ret("unknown");
#if defined(WIN32) #if defined(WIN32) || defined (__CYGWIN__) || defined(__MINGW__)
HANDLE processHandle = NULL; HANDLE processHandle = NULL;
processHandle = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, GetCurrentProcessId()); processHandle = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, GetCurrentProcessId());
if (processHandle != NULL) { if (processHandle != NULL) {

@ -42,6 +42,7 @@
#include "http.hpp" #include "http.hpp"
#include "version.hpp" #include "version.hpp"
#include "makernote_int.hpp" #include "makernote_int.hpp"
#include "futils.hpp"
// Adobe XMP Toolkit // Adobe XMP Toolkit
#ifdef EXV_HAVE_XMP_TOOLKIT #ifdef EXV_HAVE_XMP_TOOLKIT
@ -451,6 +452,9 @@ void Exiv2::dumpLibraryInfo(std::ostream& os,const exv_grep_keys_t& keys)
output(os,keys,"version" , __VERSION__); output(os,keys,"version" , __VERSION__);
output(os,keys,"date" , __DATE__ ); output(os,keys,"date" , __DATE__ );
output(os,keys,"time" , __TIME__ ); output(os,keys,"time" , __TIME__ );
output(os,keys,"processpath" , Exiv2::getProcessPath());
output(os,keys,"localedir" , EXV_LOCALEDIR);
output(os,keys,"package_name" , EXV_PACKAGE_NAME);
#ifdef EXV_USE_CURL #ifdef EXV_USE_CURL
std::string curl_protocols; std::string curl_protocols;

Loading…
Cancel
Save