- Timestamp:
- Aug 23, 1999, 12:11:23 AM (26 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/KERNEL32.DEF
r607 r634 1 ; $Id: KERNEL32.DEF,v 1.2 6 1999-08-21 16:29:27sandervl Exp $1 ; $Id: KERNEL32.DEF,v 1.27 1999-08-22 22:11:22 sandervl Exp $ 2 2 3 3 ;Created by BLAST for IBM's compiler … … 999 999 HEAP_strdupW = _HEAP_strdupW@12 @1248 1000 1000 1001 1002 1001 VIRTUAL_MapFileA = _VIRTUAL_MapFileA@4 @1249 1003 1002 VIRTUAL_MapFileW = _VIRTUAL_MapFileW@4 @1250 1004 -
trunk/src/kernel32/cvtcursor.cpp
r589 r634 1 /* $Id: cvtcursor.cpp,v 1. 1 1999-08-19 19:50:40sandervl Exp $ */1 /* $Id: cvtcursor.cpp,v 1.2 1999-08-22 22:11:21 sandervl Exp $ */ 2 2 3 3 /* … … 34 34 { 35 35 RGBQUAD *rgb; 36 RGB 36 RGB2 *os2rgb; 37 37 WINBITMAPINFOHEADER *bhdr = (WINBITMAPINFOHEADER *)(curHdr+1); 38 BITMAPFILEHEADER 38 BITMAPFILEHEADER2 *cursorhdr; 39 39 int i, bwsize, bmpsize, cursorsize; 40 40 41 41 dprintf(("ConvertCursor: Cursor size %d", size)); 42 42 bmpsize = size - sizeof(CursorComponent) - (1<<bhdr->biBitCount)*sizeof(RGBQUAD); 43 cursorsize = sizeof(BITMAPFILEHEADER ) + bmpsize + (1<<bhdr->biBitCount)*sizeof(RGB);43 cursorsize = sizeof(BITMAPFILEHEADER2) + bmpsize + (1<<bhdr->biBitCount)*sizeof(RGB2); 44 44 45 cursorhdr = (BITMAPFILEHEADER *)malloc(cursorsize);45 cursorhdr = (BITMAPFILEHEADER2 *)malloc(cursorsize); 46 46 cursorhdr->usType = BFT_POINTER; 47 cursorhdr->cbSize = sizeof(BITMAPFILEHEADER );47 cursorhdr->cbSize = sizeof(BITMAPFILEHEADER2); 48 48 cursorhdr->xHotspot = curHdr->xHotspot; 49 49 … … 55 55 dprintf(("Cursor Hot.y : %d", curHdr->yHotspot)); 56 56 57 cursorhdr->offBits = sizeof(BITMAPFILEHEADER ) + 2*sizeof(RGB) + offsetBits;58 cursorhdr->bmp .cbFix = sizeof(BITMAPINFOHEADER);59 cursorhdr->bmp .cx = (USHORT)bhdr->biWidth;60 cursorhdr->bmp .cy = (USHORT)(bhdr->biHeight);61 cursorhdr->bmp .cPlanes = bhdr->biPlanes;62 cursorhdr->bmp .cBitCount = bhdr->biBitCount;57 cursorhdr->offBits = sizeof(BITMAPFILEHEADER2) + 2*sizeof(RGB2) + offsetBits; 58 cursorhdr->bmp2.cbFix = sizeof(BITMAPINFOHEADER); 59 cursorhdr->bmp2.cx = (USHORT)bhdr->biWidth; 60 cursorhdr->bmp2.cy = (USHORT)(bhdr->biHeight); 61 cursorhdr->bmp2.cPlanes = bhdr->biPlanes; 62 cursorhdr->bmp2.cBitCount = bhdr->biBitCount; 63 63 dprintf(("Cursor size : %d", bhdr->biSizeImage)); 64 64 dprintf(("Cursor Width : %d", bhdr->biWidth)); … … 68 68 dprintf(("Cursor Compress: %d", bhdr->biCompression)); 69 69 70 os2rgb = (RGB *)(cursorhdr+1);70 os2rgb = (RGB2 *)(cursorhdr+1); 71 71 rgb = (RGBQUAD *)(bhdr+1); 72 72 for(i=0;i<(1<<bhdr->biBitCount);i++) { -
trunk/src/kernel32/exceptions.cpp
r617 r634 1 /* $Id: exceptions.cpp,v 1.1 0 1999-08-22 11:11:10sandervl Exp $ */1 /* $Id: exceptions.cpp,v 1.11 1999-08-22 22:11:21 sandervl Exp $ */ 2 2 3 3 /* … … 935 935 PEXCEPTIONREGISTRATIONRECORD pExceptRec = (PEXCEPTIONREGISTRATIONRECORD)exceptframe; 936 936 937 pExceptRec->prev_structure = 0;937 pExceptRec->prev_structure = (PEXCEPTIONREGISTRATIONRECORD)-1; 938 938 pExceptRec->ExceptionHandler = OS2ExceptionHandler; 939 939 … … 960 960 } 961 961 962 void SetOS2ExceptionChain(ULONG val) 963 { 964 USHORT sel = GetFS(); 965 966 SetExceptionChain(val); 967 SetFS(sel); 968 } 969 962 970 /***************************************************************************** 963 971 * Name : void ReplaceExceptionHandler -
trunk/src/kernel32/exceptutil.h
r620 r634 1 /* $Id: exceptutil.h,v 1. 1 1999-08-22 12:55:57sandervl Exp $ */1 /* $Id: exceptutil.h,v 1.2 1999-08-22 22:11:21 sandervl Exp $ */ 2 2 3 3 /* … … 25 25 void OS2SetExceptionHandler(void *exceptframe); 26 26 void OS2UnsetExceptionHandler(void *exceptframe); 27 void SetOS2ExceptionChain(ULONG val); 27 28 28 29 ULONG getEAX(); -
trunk/src/kernel32/heapstring.cpp
r567 r634 1 /* $Id */1 /* $Id: heapstring.cpp,v 1.8 1999-08-22 22:11:21 sandervl Exp $ */ 2 2 3 3 /* … … 845 845 846 846 847 847 848 #if 0 848 849 -
trunk/src/kernel32/kernel32exp.def
r607 r634 1 ; $Id: kernel32exp.def,v 1.1 3 1999-08-21 16:29:27sandervl Exp $1 ; $Id: kernel32exp.def,v 1.14 1999-08-22 22:11:22 sandervl Exp $ 2 2 3 3 ;Created by BLAST for IBM's compiler … … 851 851 _VIRTUAL_MapFileA@4 @1249 852 852 _VIRTUAL_MapFileW@4 @1250 853 854 ; HEAP Management (heap.cpp, heapstring.cpp) 855 _HEAP_xalloc@12 @1240 856 _HEAP_xrealloc@16 @1241 857 _HEAP_malloc@4 @1242 858 _HEAP_realloc@8 @1243 859 _HEAP_free@4 @1244 860 _HEAP_strdupWtoA@12 @1245 861 _HEAP_strdupAtoW@12 @1246 862 _HEAP_strdupA@12 @1247 863 _HEAP_strdupW@12 @1248 -
trunk/src/kernel32/windll.cpp
r624 r634 1 /* $Id: windll.cpp,v 1.1 2 1999-08-22 15:11:35sandervl Exp $ */1 /* $Id: windll.cpp,v 1.13 1999-08-22 22:11:22 sandervl Exp $ */ 2 2 3 3 /* … … 48 48 head = this; 49 49 50 dllEntryPoint = 0; 51 50 52 dprintf(("Win32Dll::Win32Dll %s %s", szFileName, szModule)); 51 53 } -
trunk/src/kernel32/winimgres.cpp
r597 r634 1 /* $Id: winimgres.cpp,v 1.1 1 1999-08-20 11:52:44sandervl Exp $ */1 /* $Id: winimgres.cpp,v 1.12 1999-08-22 22:11:22 sandervl Exp $ */ 2 2 3 3 /* … … 81 81 pstring = (PIMAGE_RESOURCE_DIR_STRING_U)((ULONG)pResDir + nameOffset); 82 82 char *typename = (char *)malloc(pstring->Length+1); 83 lstrcpynWtoA(typename, pstring->NameString, pstring->Length );83 lstrcpynWtoA(typename, pstring->NameString, pstring->Length+1); 84 84 typename[pstring->Length] = 0; 85 85 … … 170 170 171 171 resname = (char *)malloc(pstring->Length+1); 172 lstrcpynWtoA(resname, pstring->NameString, pstring->Length );172 lstrcpynWtoA(resname, pstring->NameString, pstring->Length+1); 173 173 resname[pstring->Length] = 0; 174 174 if(stricmp(resname, (char *)*nodeData) == 0) { … … 253 253 pData = getPEResourceEntry(id, type, lang); 254 254 if(pData == NULL) { 255 dprintf(("Win32Image::getPEResource: couldn't find resource %d (type %d, lang %d)", id, type, lang)); 255 if(HIWORD(id)) { 256 dprintf(("Win32Image::getPEResource: couldn't find resource %s (type %d, lang %d)", id, type, lang)); 257 } 258 else dprintf(("Win32Image::getPEResource: couldn't find resource %d (type %d, lang %d)", id, type, lang)); 256 259 return 0; 257 260 } -
trunk/src/kernel32/wprocess.cpp
r622 r634 1 /* $Id: wprocess.cpp,v 1.2 5 1999-08-22 14:24:35sandervl Exp $ */1 /* $Id: wprocess.cpp,v 1.26 1999-08-22 22:11:23 sandervl Exp $ */ 2 2 3 3 /* … … 329 329 dprintf(("KERNEL32: ExitProcess FS = %x\n", GetFS())); 330 330 331 SetOS2ExceptionChain(-1); 332 331 333 //avoid crashes since win32 & OS/2 exception handler aren't identical 332 334 //(terminate process generates two exceptions) … … 674 676 675 677 if(O32_CreateProcess(lpszImageName, lpszCommandLine, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) == TRUE) 676 return(TRUE);678 return(TRUE); 677 679 678 680 //probably a win32 exe, so run it in the pe loader 679 681 if(lpszImageName) { 680 if(lpszCommandLine) {681 cmdline = (char *)malloc(strlen(lpszImageName)+strlen(lpszCommandLine) + 16);682 sprintf(cmdline, "%s %s", lpszImageName, lpszCommandLine);683 fAllocStr = TRUE;684 }685 else cmdline = (char *)lpszImageName;682 if(lpszCommandLine) { 683 cmdline = (char *)malloc(strlen(lpszImageName)+strlen(lpszCommandLine) + 16); 684 sprintf(cmdline, "%s %s", lpszImageName, lpszCommandLine); 685 fAllocStr = TRUE; 686 } 687 else cmdline = (char *)lpszImageName; 686 688 } 687 689 else cmdline = (char *)lpszCommandLine;
Note:
See TracChangeset
for help on using the changeset viewer.