* cygpath.cc: Change including headers to allow building against
Mingw64 headers. Include ntdef.h and ntdll.h rather than ddk headers. Define _WIN32_WINNT and WINVER as 0x0602. (RtlEqualUnicodePathPrefix): Drop definition. Pulled in from ntdll.h now. (get_device_name): s/Zw/Nt. * dumper.cc: Include sys/param.h (dumper::dump_memory_region): Use MIN rather than min. * locale.cc: Include stdlib.h. Define _WIN32_WINNT and WINVER as 0x0602. * ps.cc: Include ntdef.h and ntdll.h rather than ddk headers. * regtool.cc (regDeleteKeyEx): Drop WINADVAPI qualifier.
This commit is contained in:
@ -33,6 +33,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/param.h>
|
||||
#include <windows.h>
|
||||
|
||||
#include "dumper.h"
|
||||
@ -380,7 +381,7 @@ dumper::dump_memory_region (asection * to, process_mem_region * memory)
|
||||
|
||||
while (size > 0)
|
||||
{
|
||||
todo = min (size, PAGE_BUFFER_SIZE);
|
||||
todo = MIN (size, PAGE_BUFFER_SIZE);
|
||||
if (!ReadProcessMemory (hProcess, pos, mem_buf, todo, &done))
|
||||
{
|
||||
deb_printf ("Failed to read process memory at %x(%x), error %ld\n", pos, todo, GetLastError ());
|
||||
|
Reference in New Issue
Block a user