Changeset 299 for trunk/src/kernel32
- Timestamp:
- Jul 13, 1999, 12:39:16 PM (26 years ago)
- 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 phallerExp $ */1 /* $Id: Fileio.cpp,v 1.7 1999-07-13 10:38:33 sandervl Exp $ */ 2 2 3 3 /* … … 368 368 DWORD WIN32API GetFileAttributesA(LPCSTR lpszFileName) 369 369 { 370 DWORD rc ;370 DWORD rc, error; 371 371 372 372 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 373 383 dprintf(("KERNEL32: GetFileAttributes of %s returned %d\n", lpszFileName, rc)); 374 384 return(rc); -
trunk/src/kernel32/exceptions.cpp
r276 r299 1 /* $Id: exceptions.cpp,v 1. 6 1999-07-06 09:49:45 phallerExp $ */1 /* $Id: exceptions.cpp,v 1.7 1999-07-13 10:38:33 sandervl Exp $ */ 2 2 3 3 /* … … 45 45 * 46 46 */ 47 #define INCL_MISC 47 48 #define INCL_BASE 48 49 #include <os2wrap.h> //Odin32 OS/2 api wrappers … … 81 82 UINT WIN32API SetErrorMode(UINT fuErrorMode) 82 83 { 83 UINT oldmode = CurrentErrorMode;84 UINT oldmode = CurrentErrorMode; 84 85 85 86 dprintf(("KERNEL32: SetErrorMode(%08xh)\n", 86 87 fuErrorMode)); 87 88 88 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() 89 96 90 97 return(oldmode); 91 98 } 92 93 99 94 100 /*****************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.