/* -*-C-*-
-$Id: ntfs.c,v 1.21 1998/01/09 05:33:52 cph Exp $
+$Id: ntfs.c,v 1.22 1998/02/01 05:35:41 cph Exp $
Copyright (c) 1992-98 Massachusetts Institute of Technology
DWORD bytes_per_sector;
DWORD number_of_free_clusters;
DWORD total_number_of_clusters;
- BOOL result;
- SetErrorMode (SEM_FAILCRITICALERRORS);
- result
- = (GetDiskFreeSpace (namestring,
- (§ors_per_cluster),
- (&bytes_per_sector),
- (&number_of_free_clusters),
- (&total_number_of_clusters)));
- SetErrorMode (0);
- return (result);
+ return
+ (GetDiskFreeSpace (namestring,
+ (§ors_per_cluster),
+ (&bytes_per_sector),
+ (&number_of_free_clusters),
+ (&total_number_of_clusters)));
}
static HANDLE
/* -*-C-*-
-$Id: nttrap.c,v 1.14 1997/06/26 07:02:22 cph Exp $
+$Id: nttrap.c,v 1.15 1998/02/01 05:35:33 cph Exp $
-Copyright (c) 1992-97 Massachusetts Institute of Technology
+Copyright (c) 1992-98 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
{
trap_state = trap_state_recover;
user_trap_state = trap_state_recover;
- return;
+ (void) SetErrorMode (SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX);
}
void
{
#ifdef USE_SET_UNHANDLED_EXCEPTION_FILTER
(void) SetUnhandledExceptionFilter (scheme_unhandled_exception_filter);
- /* Doesn't seem to work as it should: */
- (void) SetErrorMode (SEM_NOGPFAULTERRORBOX);
(* enter_interpreter) ();
outf_fatal ("Exception!\n");
termination_trap ();