Home GnuPG
Diffusion GPGME 9cf983b01999

core: Fail loudly in case w32 spawner not found
9cf983b01999Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

core: Fail loudly in case w32 spawner not found

* src/w32-io.c (_gpgme_io_spawn): Show a message box in
case gpgme-w32spawn.exe not found.

Otherwise every engine call will just fail with unsupported
protocol. Even in the debug output the problem was not made
clear because CreateProcess will fail with error code 87
(Invalid Parameter) because spawnhelper is NULL. The helpful
error message for ERROR_INVALID_PARAMETER would have been:
"is 'NULL' correctly installed"

As GpgME basically becomes useless on Windows without the
spawnhelper we want to fail very loud in that case.

Details

Provenance
aheineckeAuthored on Aug 18 2016, 4:56 PM
Parents
rM64194b0f8df1: Cpp: Fix some pedantic warnings
Branches
Unknown
Tags
Unknown