Changeset 299 for trunk/src/kernel32


Ignore:
Timestamp:
Jul 13, 1999, 12:39:16 PM (26 years ago)
Author:
sandervl
Message:

* empty log message *

Location:
trunk/src/kernel32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/Fileio.cpp

    r111 r299  
    1 /* $Id: Fileio.cpp,v 1.6 1999-06-17 18:21:42 phaller Exp $ */
     1/* $Id: Fileio.cpp,v 1.7 1999-07-13 10:38:33 sandervl Exp $ */
    22
    33/*
     
    368368DWORD WIN32API GetFileAttributesA(LPCSTR lpszFileName)
    369369{
    370  DWORD rc;
     370 DWORD rc, error;
    371371
    372372    rc = O32_GetFileAttributes((LPSTR)lpszFileName);
     373#if 0 // need more tests, maybe there is also a better way to hide simulated b:
     374    if(rc == -1 && lpszFileName != NULL && !strnicmp(lpszFileName, "B:", 2))
     375    {
     376      error = GetLastError();
     377      if(error = ERROR_DISK_CHANGE)
     378        SetLastError(ERROR_NOT_READY);
     379      else
     380        SetLastError(error);
     381    }
     382#endif
    373383    dprintf(("KERNEL32:  GetFileAttributes of %s returned %d\n", lpszFileName, rc));
    374384    return(rc);
  • trunk/src/kernel32/exceptions.cpp

    r276 r299  
    1 /* $Id: exceptions.cpp,v 1.6 1999-07-06 09:49:45 phaller Exp $ */
     1/* $Id: exceptions.cpp,v 1.7 1999-07-13 10:38:33 sandervl Exp $ */
    22
    33/*
     
    4545 *
    4646 */
     47#define INCL_MISC
    4748#define INCL_BASE
    4849#include <os2wrap.h>                     //Odin32 OS/2 api wrappers
     
    8182UINT WIN32API SetErrorMode(UINT fuErrorMode)
    8283{
    83  UINT oldmode = CurrentErrorMode;
     84  UINT oldmode = CurrentErrorMode;
    8485
    8586  dprintf(("KERNEL32: SetErrorMode(%08xh)\n",
    8687           fuErrorMode));
    87 
    8888  CurrentErrorMode = fuErrorMode;
     89
     90  if(fuErrorMode & SEM_FAILCRITICALERRORS || fuErrorMode & SEM_NOOPENFILEERRORBOX)
     91    DosError(FERR_DISABLEHARDERR);
     92  else
     93    DosError(FERR_ENABLEHARDERR);
     94
     95  // SEM_NOGPFAULTERRORBOX  and SEM_NOALIGNMENTFAULTEXCEPT --> UnhandledExceptionFilter()
    8996
    9097  return(oldmode);
    9198}
    92 
    9399
    94100/*****************************************************************************
Note: See TracChangeset for help on using the changeset viewer.