2005-04-14 Marcus Brinkmann <marcus@g10code.de>

* wait-global.c (gpgme_wait): If no context is found, and we
	should not hang, set *status to 0 and return NULL.
	Reported by Igor Belyi <gpgme@katehok.ac93.org>.
This commit is contained in:
Marcus Brinkmann 2005-04-14 08:41:12 +00:00
parent 719d27dfce
commit 33fee70045
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2005-04-14 Marcus Brinkmann <marcus@g10code.de>
* wait-global.c (gpgme_wait): If no context is found, and we
should not hang, set *status to 0 and return NULL.
Reported by Igor Belyi <gpgme@katehok.ac93.org>.
2005-03-24 Marcus Brinkmann <marcus@g10code.de>
* data.h (EOPNOTSUPP) [_WIN32]: Remove definition.

View File

@ -350,6 +350,12 @@ gpgme_wait (gpgme_ctx_t ctx, gpgme_error_t *status, int hang)
ctx = dctx;
hang = 0;
}
else if (!hang)
{
ctx = NULL;
if (status)
*status = NULL;
}
}
}
while (hang);