aboutsummaryrefslogtreecommitdiffstats
path: root/g10/photoid.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2023-06-26 01:59:35 +0000
committerNIIBE Yutaka <[email protected]>2023-06-26 01:59:35 +0000
commit1f9a4fbc7e6c5c8d39ef3978fd4461fe00897fe5 (patch)
tree8e5b0903c67d1e95dc3c66922873e5cb01a6ae6a /g10/photoid.c
parenttools: Fix use of EXCEPTS when spawning a process. (diff)
downloadgnupg-1f9a4fbc7e6c5c8d39ef3978fd4461fe00897fe5.tar.gz
gnupg-1f9a4fbc7e6c5c8d39ef3978fd4461fe00897fe5.zip
gpg,w32: Add comment about debug output of ShellExecuteEx.
* g10/photoid.c (w32_system): Add comment about hInstApp, why we use the integer value of possibly smaller size for the debug output. -- GnuPG-bug-id: 6508 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'g10/photoid.c')
-rw-r--r--g10/photoid.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/g10/photoid.c b/g10/photoid.c
index 80fc35f8c..5f4bf5e2b 100644
--- a/g10/photoid.c
+++ b/g10/photoid.c
@@ -92,8 +92,15 @@ w32_system (const char *command)
return -1;
}
if (DBG_EXTPROG)
- log_debug ("ShellExecuteEx succeeded (hProcess=%p,hInstApp=%d)\n",
- see.hProcess, (int)see.hInstApp);
+ {
+ /* hInstApp has HINSTANCE type. The documentations says
+ that it's not a true HINSTANCE and it can be cast only to
+ an int. */
+ int hinstance = (intptr_t)see.hInstApp;
+
+ log_debug ("ShellExecuteEx succeeded (hProcess=%p,hInstApp=%d)\n",
+ see.hProcess, hinstance);
+ }
if (!see.hProcess)
{