* 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:
@ -23,8 +23,8 @@ details. */
|
||||
#include <sys/cygwin.h>
|
||||
#include <cygwin/version.h>
|
||||
#include <psapi.h>
|
||||
#include <ddk/ntapi.h>
|
||||
#include <ddk/winddk.h>
|
||||
#include <ntdef.h>
|
||||
#include <ntdll.h>
|
||||
#include "loadlib.h"
|
||||
|
||||
/* Maximum possible path length under NT. There's no official define
|
||||
@ -347,7 +347,7 @@ main (int argc, char *argv[])
|
||||
unicode_buf to have enough space for a maximum sized
|
||||
UNICODE_STRING. */
|
||||
if (uni->Length == 0) /* System process */
|
||||
win32path = L"System";
|
||||
win32path = (wchar_t *) L"System";
|
||||
else
|
||||
{
|
||||
uni->Buffer[uni->Length / sizeof (WCHAR)] = L'\0';
|
||||
|
Reference in New Issue
Block a user