Changeset 3275 for trunk/src/kernel32
- Timestamp:
- Mar 29, 2000, 7:17:18 PM (25 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/KERNEL32.DEF
r3269 r3275 1 ; $Id: KERNEL32.DEF,v 1.7 6 2000-03-29 15:17:27 cbratschiExp $1 ; $Id: KERNEL32.DEF,v 1.77 2000-03-29 17:17:17 sandervl Exp $ 2 2 3 3 ;Created by BLAST for IBM's compiler … … 679 679 ; QueryWin31IniFilesMappedToRegistry = _QueryWin31IniFilesMappedToRegistry@?? ;NT 680 680 ; QueueUserAPC = _QueueUserAPC@?? @566 681 RaiseException = RaiseExceptionAsm@567681 RaiseException = _RaiseException@16 @567 682 682 ReadConsoleA = _ReadConsoleA@20 @568 683 683 ReadConsoleInputA = _ReadConsoleInputA@16 @569 … … 710 710 RtlFillMemory = _RtlFillMemory@12 @588 711 711 RtlMoveMemory = _RtlMoveMemory@12 @589 712 RtlUnwind = RtlUnwindAsm@590712 RtlUnwind = _RtlUnwind@16 @590 713 713 RtlZeroMemory = _RtlZeroMemory@8 @591 714 714 SMapLS = _SMapLS@4 @592 ;W95 -
trunk/src/kernel32/critsection.cpp
r2802 r3275 1 /* $Id: critsection.cpp,v 1. 4 2000-02-16 14:25:36sandervl Exp $ */1 /* $Id: critsection.cpp,v 1.5 2000-03-29 17:17:17 sandervl Exp $ */ 2 2 /* 3 3 * Win32 critical sections … … 87 87 return; 88 88 } 89 89 90 /* Now wait for it */ 90 91 if ( crit->Reserved && crit->Reserved != GetCurrentProcessId() ) 91 for (;;) 92 92 { 93 dprintf(("Crst %p belongs to process %ld, current is %ld!\n", 94 crit, crit->Reserved, GetCurrentProcessId() )); 95 return; 96 } 97 98 res = ODIN_WaitForSingleObject( crit->LockSemaphore, 5000L ); 99 if ( res == WAIT_TIMEOUT ) 100 { 101 dprintf(("Critical section %p wait timed out, retrying (60 sec)\n", crit )); 102 res = WaitForSingleObject( crit->LockSemaphore, 60000L ); 103 } 104 if ( res == WAIT_TIMEOUT && TRACE_ON(relay) ) 105 { 106 dprintf(("Critical section %p wait timed out, retrying (5 min)\n", crit )); 107 res = WaitForSingleObject( crit->LockSemaphore, 300000L ); 108 } 109 if (res != STATUS_WAIT_0) 110 { 111 dprintf(("Critical section %p wait failed err=%lx\n", crit, res )); 112 /* FIXME: should raise an exception */ 93 res = ODIN_WaitForSingleObject( crit->LockSemaphore, 5000L ); 94 if ( res == WAIT_TIMEOUT ) 95 { 96 dprintf(("Critical section %p wait timed out, retrying (60 sec)\n", crit )); 97 res = ODIN_WaitForSingleObject( crit->LockSemaphore, 60000L ); 98 if ( res == WAIT_TIMEOUT && TRACE_ON(relay) ) 99 { 100 dprintf(("Critical section %p wait timed out, retrying (5 min)\n", crit )); 101 res = WaitForSingleObject( crit->LockSemaphore, 300000L ); 102 } 103 } 104 if (res == STATUS_WAIT_0) break; 105 106 #if 0 107 EXCEPTION_RECORD rec; 108 109 rec.ExceptionCode = EXCEPTION_CRITICAL_SECTION_WAIT; 110 rec.ExceptionFlags = 0; 111 rec.ExceptionRecord = NULL; 112 rec.ExceptionAddress = RaiseException; /* sic */ 113 rec.NumberParameters = 1; 114 rec.ExceptionInformation[0] = (DWORD)crit; 115 RtlRaiseException( &rec ); 116 #endif 117 RaiseException(EXCEPTION_CRITICAL_SECTION_WAIT, 0, 1, (DWORD *)crit); 113 118 } 114 119 } -
trunk/src/kernel32/exceptutil.asm
r2802 r3275 1 ; $Id: exceptutil.asm,v 1. 5 2000-02-16 14:25:40sandervl Exp $1 ; $Id: exceptutil.asm,v 1.6 2000-03-29 17:17:18 sandervl Exp $ 2 2 3 3 ;/* … … 12 12 13 13 CODE32 SEGMENT DWORD PUBLIC USE32 'CODE' 14 public RaiseExceptionAsm14 public _RaiseException@16 15 15 extrn OS2RAISEEXCEPTION : near 16 16 17 RaiseExceptionAsmproc near17 _RaiseException@16 proc near 18 18 push dword ptr [esp+4] ;DWORD dwExceptionCode 19 19 push dword ptr [esp+12] ;DWORD dwExceptionFlags … … 47 47 48 48 ret 20 ;__stdcall 49 RaiseExceptionAsmendp50 51 public RtlUnwindAsm49 _RaiseException@16 endp 50 51 public _RtlUnwind@16 52 52 extrn OS2RTLUNWIND : near 53 53 54 RtlUnwindAsmproc near54 _RtlUnwind@16 proc near 55 55 push dword ptr [esp+4] ;PWINEXCEPTION_FRAME pEndFrame 56 56 push dword ptr [esp+12] ;LPVOID unusedEip … … 84 84 85 85 ret 20 ;__stdcall 86 RtlUnwindAsmendp86 _RtlUnwind@16 endp 87 87 88 88 -
trunk/src/kernel32/winimgres.cpp
r3228 r3275 1 /* $Id: winimgres.cpp,v 1.3 3 2000-03-24 19:25:34sandervl Exp $ */1 /* $Id: winimgres.cpp,v 1.34 2000-03-29 17:17:18 sandervl Exp $ */ 2 2 3 3 /* … … 224 224 pData = getPEResourceEntry(id, type, lang); 225 225 if(pData == NULL) { 226 dprintf(("Win32ImageBase::getPEResourceSize: couldn't find resource %d (type %d, lang % d)", id, type, lang));226 dprintf(("Win32ImageBase::getPEResourceSize: couldn't find resource %d (type %d, lang %x)", id, type, lang)); 227 227 return 0; 228 228 } … … 265 265 if(pData == NULL) { 266 266 if(HIWORD(id)) { 267 dprintf(("Win32ImageBase::getPEResource %s: couldn't find resource %s (type %d, lang % d)", szModule, id, type, lang));268 } 269 else dprintf(("Win32ImageBase::getPEResource %s: couldn't find resource %d (type %d, lang % d)", szModule, id, type, lang));267 dprintf(("Win32ImageBase::getPEResource %s: couldn't find resource %s (type %d, lang %x)", szModule, id, type, lang)); 268 } 269 else dprintf(("Win32ImageBase::getPEResource %s: couldn't find resource %d (type %d, lang %x)", szModule, id, type, lang)); 270 270 return 0; 271 271 }
Note:
See TracChangeset
for help on using the changeset viewer.