diff options
author | Werner Koch <[email protected]> | 2010-10-31 10:30:16 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2010-10-31 10:30:16 +0000 |
commit | c9b40515e8deecba9e179d48c0f826019c6ee5c4 (patch) | |
tree | d119d54177e8ea0a84a32c3c8ab92e6d4567e190 | |
parent | 2010-10-29 Marcus Brinkmann <[email protected]> (diff) | |
download | libgpg-error-c9b40515e8deecba9e179d48c0f826019c6ee5c4.tar.gz libgpg-error-c9b40515e8deecba9e179d48c0f826019c6ee5c4.zip |
s/abort/TerminateProcess/
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/init.c | 3 | ||||
-rw-r--r-- | src/w32-gettext.c | 3 |
3 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2010-10-31 Werner Koch <[email protected]> + + * src/init.c (abort): Use TerminateProcess; exit would call atexit + functions. + 2010-10-29 Marcus Brinkmann <[email protected]> * src/w32-gettext.c: Guard include of <sys/types.h>. Do not @@ -37,7 +37,8 @@ # define TLS_OUT_OF_INDEXES 0xFFFFFFFF # endif # ifndef __MINGW32CE__ -# define abort() exit(1) +# /* Replace the Mingw32CE provided abort function. */ +# define abort() do { TerminateProcess (GetCurrentProcess(), 8); } while (0) # endif #endif diff --git a/src/w32-gettext.c b/src/w32-gettext.c index 8a67ce7..dc9cbd9 100644 --- a/src/w32-gettext.c +++ b/src/w32-gettext.c @@ -1234,7 +1234,8 @@ load_domain (const char *filename) size_t to_read; char *read_ptr; - fh = CreateFileA (filename, GENERIC_READ, FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL); + fh = CreateFileA (filename, GENERIC_READ, FILE_SHARE_WRITE, NULL, + OPEN_EXISTING, 0, NULL); if (fh == INVALID_HANDLE_VALUE) return NULL; |