Changeset 299
- Timestamp:
- Jul 13, 1999, 12:39:16 PM (26 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
include/os2wrap.h (modified) (3 diffs)
-
src/kernel32/Fileio.cpp (modified) (2 diffs)
-
src/kernel32/exceptions.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/os2wrap.h
r223 r299 1 /* $Id: os2wrap.h,v 1. 6 1999-06-26 18:24:22sandervl Exp $ */1 /* $Id: os2wrap.h,v 1.7 1999-07-13 10:39:16 sandervl Exp $ */ 2 2 #ifndef __OS2WRAP_H__ 3 3 #define __OS2WRAP_H__ … … 950 950 #define DosSearchPath _DosSearchPath 951 951 952 inline ULONG _DosError(ULONG error) 953 { 954 ULONG yyrc; 955 USHORT sel = RestoreOS2FS(); 956 957 yyrc = DosError(error); 958 SetFS(sel); 959 960 return yyrc; 961 } 962 963 #undef DosError 964 #define DosError _DosError 965 952 966 #endif 953 967 #ifdef INCL_DOSDEVICES … … 1462 1476 1463 1477 #endif 1478 1464 1479 #ifdef INCL_DOSSESMGR 1465 1480 inline ULONG _DosQueryAppType(PCSZ a, PULONG b) -
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.
