mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
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 <gniibe@fsij.org>
This commit is contained in:
parent
f0ecc07c4e
commit
1f9a4fbc7e
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user