* hookapi.cc (hook_or_detect_cygwin): Correct inverted test for whether to
allocate a buffer by always allocating a buffer.
This commit is contained in:
parent
f098767559
commit
503490bb9f
@ -1,3 +1,8 @@
|
||||
2005-09-28 Christopher Faylor <cgf@timesys.com>
|
||||
|
||||
* hookapi.cc (hook_or_detect_cygwin): Correct inverted test for whether
|
||||
to allocate a buffer by always allocating a buffer.
|
||||
|
||||
2005-09-28 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* fhandler.h (class fhandler_dev_raw): Delete current_position and
|
||||
|
@ -185,7 +185,7 @@ hook_or_detect_cygwin (const char *name, const void *fn)
|
||||
function_hook fh;
|
||||
fh.origfn = NULL;
|
||||
fh.hookfn = fn;
|
||||
char *buf = fn ? NULL : (char *) alloca (strlen (name) + sizeof ("_64"));
|
||||
char *buf = (char *) alloca (strlen (name) + sizeof ("_64"));
|
||||
int i;
|
||||
// Iterate through each import descriptor, and redirect if appropriate
|
||||
for (PIMAGE_IMPORT_DESCRIPTOR pd = pdfirst; pd->FirstThunk; pd++)
|
||||
|
Loading…
Reference in New Issue
Block a user