Changeset 1403
- Timestamp:
- Oct 22, 1999, 8:07:24 PM (26 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/kernel32/KERNEL32.CPP ¶
r1291 r1403 1 /* $Id: KERNEL32.CPP,v 1.2 2 1999-10-14 15:15:22 phallerExp $ */1 /* $Id: KERNEL32.CPP,v 1.23 1999-10-22 18:07:20 sandervl Exp $ */ 2 2 3 3 /* … … 577 577 { 578 578 dprintf(("KERNEL32: OS2MulDiv %d*%d/%d\n", arg1, arg2, arg3)); 579 if(arg3 == 0) 580 return 0; 581 579 582 return O32_MulDiv(arg1, arg2, arg3); 580 583 } … … 808 811 809 812 // return(WIN32OS2_VERSION); 810 return (0x0 );813 return (0x00000400); 811 814 } 812 815 //****************************************************************************** -
TabularUnified trunk/src/kernel32/exceptions.cpp ¶
r1287 r1403 1 /* $Id: exceptions.cpp,v 1.2 5 1999-10-14 12:30:01sandervl Exp $ */1 /* $Id: exceptions.cpp,v 1.26 1999-10-22 18:07:18 sandervl Exp $ */ 2 2 3 3 /* … … 71 71 static PEXCEPTION_HANDLER StartupCodeHandler = NULL; 72 72 73 extern "C" PWINEXCEPTION_FRAME QueryExceptionChain();74 73 extern "C" PWINEXCEPTION_FRAME GetExceptionRecord(ULONG offset, ULONG segment); 75 74 … … 1025 1024 } 1026 1025 } 1026 else return XCPT_CONTINUE_SEARCH; //pass on to OS/2 RTL or app exception handler 1027 1027 1028 dprintf(("KERNEL32: OS2ExceptionHandler: Continue and kill\n")); 1028 1029 pCtxRec->ctx_RegEip = (ULONG)KillWin32Process; … … 1073 1074 1074 1075 DosSetExceptionHandler(pExceptRec); 1076 dprintf(("OS2SetExceptionHandler: exception chain %x (old %x)", pExceptRec, pExceptRec->prev_structure)); 1075 1077 } 1076 1078 … … 1127 1129 return; 1128 1130 1129 orgframe = QueryExceptionChain();1131 orgframe = (PWINEXCEPTION_FRAME)QueryExceptionChain(); 1130 1132 if((int)orgframe == 0 || 1131 1133 (int)orgframe == -1) -
TabularUnified trunk/src/kernel32/exceptutil.h ¶
r634 r1403 1 /* $Id: exceptutil.h,v 1. 2 1999-08-22 22:11:21sandervl Exp $ */1 /* $Id: exceptutil.h,v 1.3 1999-10-22 18:07:19 sandervl Exp $ */ 2 2 3 3 /* … … 20 20 void __cdecl SetExceptionChain(DWORD); 21 21 22 extern "C" PVOID QueryExceptionChain(); 23 22 24 void DisableFPUExceptions(); 23 25 ULONG GetDllEntryPoint(); -
TabularUnified trunk/src/kernel32/lfile.cpp ¶
r1155 r1403 1 /* $Id: lfile.cpp,v 1. 4 1999-10-06 15:00:27 phallerExp $ */1 /* $Id: lfile.cpp,v 1.5 1999-10-22 18:07:21 sandervl Exp $ */ 2 2 3 3 /* … … 175 175 ULONG rc; 176 176 177 dprintf(("KERNEL32: _lread(%08xh, %08xh, %08xh)\n",178 arg1,179 arg2,180 arg3));177 // dprintf(("KERNEL32: _lread(%08xh, %08xh, %08xh)\n", 178 // arg1, 179 // arg2, 180 // arg3)); 181 181 182 182 if (!ReadFile(arg1, … … 187 187 rc = -1; 188 188 189 dprintf(("KERNEL32: _lread returns %08xh.",190 rc));189 // dprintf(("KERNEL32: _lread returns %08xh.", 190 // rc)); 191 191 192 192 return rc; -
TabularUnified trunk/src/kernel32/os2heap.cpp ¶
r1118 r1403 1 /* $Id: os2heap.cpp,v 1.1 1 1999-10-04 09:55:56sandervl Exp $ */1 /* $Id: os2heap.cpp,v 1.12 1999-10-22 18:07:21 sandervl Exp $ */ 2 2 3 3 /* … … 262 262 HEAPELEM *helem = (HEAPELEM *)((char *)lpMem - sizeof(HEAPELEM)); 263 263 LPVOID lpNewMem; 264 int i ;264 int i, oldSize; 265 265 266 266 if (dwBytes == 0) return NULL; // intercept stupid parameters … … 277 277 } 278 278 279 if (Size(0,lpMem) == dwBytes) return lpMem; // if reallocation with same size 280 // don't do anything 281 282 // dprintf(("OS2Heap::ReAlloc %X %X %d\n", dwFlags, lpMem, dwBytes)); 279 oldSize = Size(0,lpMem); 280 if (oldSize == dwBytes) return lpMem; // if reallocation with same size 281 // don't do anything 283 282 lpNewMem = Alloc(dwFlags, dwBytes); 284 memcpy(lpNewMem, lpMem, Size(0, lpMem));283 memcpy(lpNewMem, lpMem, dwBytes < oldSize ? dwBytes : oldSize); 285 284 Free(0, lpMem); 286 285 287 dassert(lpNewMem, ("OS2Heap::ReAlloc, no more memory left\n")); 286 if(lpNewMem == NULL) 287 { 288 dprintf(("OS2Heap::ReAlloc, no more memory left\n")); 289 } 288 290 289 291 return(lpNewMem); -
TabularUnified trunk/src/kernel32/wprocess.cpp ¶
r1284 r1403 1 /* $Id: wprocess.cpp,v 1.3 8 1999-10-14 09:57:38sandervl Exp $ */1 /* $Id: wprocess.cpp,v 1.39 1999-10-22 18:07:24 sandervl Exp $ */ 2 2 3 3 /* … … 52 52 DWORD *TIBFlatPtr = 0; 53 53 54 extern "C" ULONG QueryExceptionChain();55 56 57 54 //****************************************************************************** 58 55 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.