common,w32: Fix setting environment variables on Windows.
authorJustus Winter <justus@g10code.com>
Thu, 20 Oct 2016 14:45:18 +0000 (16:45 +0200)
committerJustus Winter <justus@g10code.com>
Thu, 20 Oct 2016 15:01:24 +0000 (17:01 +0200)
commit8c7c4faf3de28ca70a60e6b15f51c1b206e0ddd9
tree8ca337ff14ad02369b2e13a6865cf5cb91bb68e0
parentbf37916a23bd0929fc4a5f28c9a41f43c5a473f6
common,w32: Fix setting environment variables on Windows.

* common/sysutils.c (gnupg_setenv): Also update the environment block
maintained by the C runtime.
(gnupg_unsetenv): Likewise.
* tests/gpgscm/ffi.c (do_setenv): Fix error handling.

Signed-off-by: Justus Winter <justus@g10code.com>
common/sysutils.c
tests/gpgscm/ffi.c