Fix getProcessPath()
This commit is contained in:
parent
e66c832008
commit
2f70ae4305
@ -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) {
|
||||
|
||||
@ -42,6 +42,7 @@
|
||||
#include "http.hpp"
|
||||
#include "version.hpp"
|
||||
#include "makernote_int.hpp"
|
||||
#include "futils.hpp"
|
||||
|
||||
// Adobe 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,"date" , __DATE__ );
|
||||
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
|
||||
std::string curl_protocols;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user