Mercurial > hg > xemacs-beta
diff src/unexnt.c @ 5126:2a462149bd6a ben-lisp-object
merge
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Wed, 24 Feb 2010 19:04:27 -0600 |
parents | 6f2158fa75ed |
children | 308d34e9f07d |
line wrap: on
line diff
--- a/src/unexnt.c Wed Feb 24 01:58:04 2010 -0600 +++ b/src/unexnt.c Wed Feb 24 19:04:27 2010 -0600 @@ -1,6 +1,6 @@ /* unexec for XEmacs on Windows NT. Copyright (C) 1994 Free Software Foundation, Inc. - Copyright (C) 2002 Ben Wing. + Copyright (C) 2002, 2010 Ben Wing. This file is part of XEmacs. @@ -525,12 +525,11 @@ file = qxeCreateFile (filename, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); - if (file == INVALID_HANDLE_VALUE) - ABORT (); + assert (file != INVALID_HANDLE_VALUE); /* Seek to where the .bss section is tucked away after the heap... */ index = heap_index_in_executable + get_committed_heap_size (); - if (SetFilePointer (file, index, NULL, FILE_BEGIN) == 0xFFFFFFFF) + if (SetFilePointer (file, index, NULL, FILE_BEGIN) == 0xFFFFFFFF) ABORT (); /* Ok, read in the saved .bss section and initialize all @@ -553,14 +552,12 @@ file = qxeCreateFile (filename, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); - if (file == INVALID_HANDLE_VALUE) - ABORT (); + assert (file != INVALID_HANDLE_VALUE); size = GetFileSize (file, &upper_size); file_mapping = qxeCreateFileMapping (file, NULL, PAGE_WRITECOPY, 0, size, NULL); - if (!file_mapping) - ABORT (); + assert (file_mapping); size = get_committed_heap_size (); file_base = MapViewOfFileEx (file_mapping, FILE_MAP_COPY, 0,