- Timestamp:
- Apr 22, 2001, 11:00:19 AM (24 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/codepage.cpp
r5485 r5564 114 114 115 115 return ansi_cptable->info.codepage; 116 }117 118 static UconvObject GetObjectByCP(ULONG codepage)119 {120 UconvObject rc = 0;121 UniChar codepage_str[12];122 123 BOOL ret = UniMapCpToUcsCp(codepage, codepage_str, sizeof(codepage_str));124 if ( ret == ULS_SUCCESS )125 {126 ret = UniCreateUconvObject( codepage_str, &rc );127 if ( ret != ULS_SUCCESS )128 rc = 0;129 }130 dprintf(("UniCreateUconvObject for CP %d (%08x)\n", codepage, rc ));131 return rc;132 }133 134 static UconvObject DisplayUconv = NULL;135 static UconvObject WindowsUconv = NULL;136 137 UconvObject GetDisplayUconvObject()138 {139 if (!DisplayUconv)140 DisplayUconv = GetObjectByCP(GetDisplayCodepage());141 142 return DisplayUconv;143 }144 145 UconvObject GetWindowsUconvObject()146 {147 if (!WindowsUconv)148 WindowsUconv = GetObjectByCP(GetWindowsCodepage());149 150 return WindowsUconv;151 116 } 152 117 -
trunk/src/kernel32/exceptutil.asm
r5557 r5564 1 ; $Id: exceptutil.asm,v 1.1 5 2001-04-21 09:10:14sandervl Exp $1 ; $Id: exceptutil.asm,v 1.16 2001-04-22 09:00:19 sandervl Exp $ 2 2 3 3 ;/* … … 17 17 BSS32 segment dword use32 public 'BSS' 18 18 BSS32 ends 19 EH_CODE segment dword use32 public 'CODE'20 EH_CODE ends21 CTOR_DTOR1 segment dword use32 public 'DATA'22 CTOR_DTOR1 ends23 CTOR_DTOR2 segment dword use32 public 'DATA'24 CTOR_DTOR2 ends25 CTOR_DTOR3 segment dword use32 public 'DATA'26 CTOR_DTOR3 ends27 EH_DATA segment para use32 public 'DATA'28 EH_DATA ends29 _VFT segment para use32 public 'DATA'30 _VFT ends31 19 DGROUP group BSS32, DATA32 32 20 assume cs:FLAT, ds:FLAT, ss:FLAT, es:FLAT -
trunk/src/kernel32/heapshared.cpp
r5075 r5564 1 /* $Id: heapshared.cpp,v 1. 7 2001-02-09 18:31:05sandervl Exp $ */1 /* $Id: heapshared.cpp,v 1.8 2001-04-22 09:00:19 sandervl Exp $ */ 2 2 /* 3 3 * Shared heap functions for OS/2 … … 42 42 43 43 if(pSharedMem == NULL) { 44 dprintf(("KERNEL32: InitializeSharedHeap %x", &sharedHeap));45 44 rc = DosAllocSharedMem(&pSharedMem, NULL, MAX_HEAPSIZE, PAG_READ|PAG_WRITE|OBJ_GETTABLE); 46 45 if(rc != 0) { … … 63 62 return FALSE; 64 63 } 64 dprintf(("KERNEL32: First InitializeSharedHeap %x %x", pSharedMem, sharedHeap)); 65 65 for(int i=0;i<INCR_HEAPSIZE/PAGE_SIZE;i++) { 66 66 pageBitmap[i] = 1; //mark as committed … … 72 72 return FALSE; 73 73 } 74 dprintf(("KERNEL32: InitializeSharedHeap %x %x refcount %d", pSharedMem, sharedHeap, refCount)); 74 75 if(_uopen(sharedHeap) != 0) { 75 76 dprintf(("InitializeSharedHeap: unable to open shared heap!"));
Note:
See TracChangeset
for help on using the changeset viewer.