APPROVE COMMIT
Thanks to Peter for the original patch.
2002-04-13 Jonathan Harris <jonathan(a)xemacs.org>
* unexnt.c (_start):
* unexnt.c (unexec):
* unexnt.c (map_in_heap):
Clean up one remaining file where nonintercepted Windows calls
were being used.
Jonathan.
--
Jonathan Harris | jhar(a)tardis.ed.ac.uk
London, England | Jonathan.Harris(a)symbian.com
Index: src/unexnt.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/unexnt.c,v
retrieving revision 1.12
diff -u -r1.12 unexnt.c
--- src/unexnt.c 2002/03/13 08:53:02 1.12
+++ src/unexnt.c 2002/04/11 00:49:03
@@ -128,7 +128,7 @@
{
char executable_path[PATH_MAX];
- if (GetModuleFileName (NULL, executable_path, PATH_MAX) == 0)
+ if (GetModuleFileNameA (NULL, executable_path, PATH_MAX) == 0)
{
exit (1);
}
@@ -225,7 +225,7 @@
dump_bss_and_heap (&in_file, &out_file);
/* Patch up header fields; profiler is picky about this. */
- hImagehelp = LoadLibrary ("imagehlp.dll");
+ hImagehelp = LoadLibraryA ("imagehlp.dll");
if (hImagehelp)
{
PIMAGE_DOS_HEADER dos_header;
@@ -534,14 +534,14 @@
void *file_base;
unsigned long size, upper_size, n_read;
- file = CreateFile (filename, GENERIC_READ, FILE_SHARE_READ, NULL,
- OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
+ file = CreateFileA (filename, GENERIC_READ, FILE_SHARE_READ, NULL,
+ OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
if (file == INVALID_HANDLE_VALUE)
abort ();
size = GetFileSize (file, &upper_size);
- file_mapping = CreateFileMapping (file, NULL, PAGE_WRITECOPY,
- 0, size, NULL);
+ file_mapping = CreateFileMappingA (file, NULL, PAGE_WRITECOPY,
+ 0, size, NULL);
if (!file_mapping)
abort ();