mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-20 16:01:10 +08:00
* external.cc (cygwin_internal): Fix va_arg references.
This commit is contained in:
parent
13af9a149d
commit
ad377fe347
@ -1,3 +1,7 @@
|
||||
2002-11-21 Igor Pechtchanski <pechtcha@cs.nyu.edu>
|
||||
|
||||
* external.cc (cygwin_internal): Fix va_arg references.
|
||||
|
||||
2002-11-21 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* exceptions.cc (sigthread::get_winapi_lock): Just do standard 'give up
|
||||
|
@ -182,7 +182,7 @@ cygwin_internal (cygwin_getinfo_types t, ...)
|
||||
return (DWORD) fillout_pinfo (va_arg (arg, pid_t), 1);
|
||||
|
||||
case CW_INIT_EXCEPTIONS:
|
||||
init_exceptions ((exception_list *) arg);
|
||||
init_exceptions (va_arg (arg, exception_list *));
|
||||
return 0;
|
||||
|
||||
case CW_GET_CYGDRIVE_INFO:
|
||||
@ -196,16 +196,15 @@ cygwin_internal (cygwin_getinfo_types t, ...)
|
||||
|
||||
case CW_SET_CYGWIN_REGISTRY_NAME:
|
||||
{
|
||||
# define cr ((char *) arg)
|
||||
const char *cr = va_arg (arg, char *);
|
||||
if (check_null_empty_str_errno (cr))
|
||||
return (DWORD) NULL;
|
||||
cygheap->cygwin_regname = (char *) crealloc (cygheap->cygwin_regname,
|
||||
strlen (cr) + 1);
|
||||
strcpy (cygheap->cygwin_regname, cr);
|
||||
}
|
||||
case CW_GET_CYGWIN_REGISTRY_NAME:
|
||||
return (DWORD) cygheap->cygwin_regname;
|
||||
# undef cr
|
||||
}
|
||||
|
||||
case CW_STRACE_TOGGLE:
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user