diff options
author | Christopher Faylor <me@cgf.cx> | 2005-09-08 04:57:12 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-09-08 04:57:12 +0400 |
commit | 70d0243ce9d627f9aa79b3eccbf0747347ba7b1a (patch) | |
tree | 7e10b238e159c210753c54b9fa80c995d15e9293 /winsup/cygwin/hookapi.cc | |
parent | 31fcc87ed9625fef64c1147f81190eebc6c32bb4 (diff) |
* hookapi.cc (rvadelta): Change argument to DWORD to eliminate a compiler
warning.
* path.h (path_conv::set_cygexec): New function.
* spawn.cc (av::iscygwin): Eliminate.
(av::av): Don't initialize iscygwin.
(spawn_guts): Just use real_path.iscygexec for all tests.
(av::fixup): Short circuit test if .exe extension and known cygexec. Set
cygexec flag appropriately if we find that program uses cygwin1.dll.
Diffstat (limited to 'winsup/cygwin/hookapi.cc')
-rw-r--r-- | winsup/cygwin/hookapi.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/hookapi.cc b/winsup/cygwin/hookapi.cc index 8857b3f0e..08e257ba1 100644 --- a/winsup/cygwin/hookapi.cc +++ b/winsup/cygwin/hookapi.cc @@ -39,7 +39,7 @@ PEHeaderFromHModule (HMODULE hModule) } long -rvadelta (PIMAGE_NT_HEADERS pnt, long import_rva) +rvadelta (PIMAGE_NT_HEADERS pnt, DWORD import_rva) { PIMAGE_SECTION_HEADER section = (PIMAGE_SECTION_HEADER) (pnt + 1); for (int i = 0; i < pnt->FileHeader.NumberOfSections; i++) |