Changeset 1490 for trunk/src/kernel32
- Timestamp:
- Oct 28, 1999, 2:01:12 PM (26 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/KERNEL32.CPP
r1481 r1490 1 /* $Id: KERNEL32.CPP,v 1.2 5 1999-10-27 18:11:38sandervl Exp $ */1 /* $Id: KERNEL32.CPP,v 1.26 1999-10-28 12:01:11 sandervl Exp $ */ 2 2 3 3 /* … … 840 840 841 841 // return(WIN32OS2_VERSION); 842 return (0x00000 400);842 return (0x0000004); 843 843 } 844 844 //****************************************************************************** -
trunk/src/kernel32/KERNEL32.DEF
r1476 r1490 1 ; $Id: KERNEL32.DEF,v 1.4 6 1999-10-27 12:38:44 phallerExp $1 ; $Id: KERNEL32.DEF,v 1.47 1999-10-28 12:01:11 sandervl Exp $ 2 2 3 3 ;Created by BLAST for IBM's compiler … … 1040 1040 PROFILE_SetOdinIniBool = _PROFILE_SetOdinIniBool@12 @1269 1041 1041 PROFILE_SaveOdinIni = _PROFILE_SaveOdinIni@0 @1270 1042 1043 ;shared memory allocation 1044 _smalloc__FUi @1271 -
trunk/src/kernel32/directory.cpp
r1410 r1490 1 /* $Id: directory.cpp,v 1. 7 1999-10-23 12:34:46sandervl Exp $ */1 /* $Id: directory.cpp,v 1.8 1999-10-28 12:01:12 sandervl Exp $ */ 2 2 3 3 /* … … 189 189 len = PROFILE_GetOdinIniString(ODINDIRECTORIES,"SYSTEM","",lpBuffer,uSize); 190 190 if (len > 2) { 191 if(lpBuffer[len-1] == '\\') { 192 lpBuffer[len-1] = 0; 193 len--; 194 } 191 195 return len; 192 196 } 193 197 else {//SvL: Use path of kernel32.dll instead of calling Open32 api (which returns \OS2\SYSTEM) 194 198 lstrcpynA(lpBuffer, kernel32Path, uSize); 195 return lstrlenA(lpBuffer); 199 len = lstrlenA(lpBuffer);; 200 if(lpBuffer[len-1] == '\\') { 201 lpBuffer[len-1] = 0; 202 len--; 203 } 204 return len; 196 205 } 197 206 } … … 247 256 uSize); 248 257 return (lstrlenA(lpBuffer)); /* return number of copies bytes */ 249 } else 258 } 259 else 250 260 { 251 261 int len; 252 262 253 263 len = PROFILE_GetOdinIniString(ODINDIRECTORIES,"WINDOWS","",lpBuffer,uSize); 254 if (len > 2) return len; 264 if (len > 2) { 265 if(lpBuffer[len-1] == '\\') { 266 lpBuffer[len-1] = 0; 267 len--; 268 } 269 return len; 270 } 255 271 else 256 257 /* if no override by environment is available */ 258 return O32_GetWindowsDirectory(lpBuffer,uSize); 272 /* if no override by environment is available */ 273 return O32_GetWindowsDirectory(lpBuffer,uSize); 259 274 } 260 275 } -
trunk/src/kernel32/heapshared.cpp
r1432 r1490 1 /* $Id: heapshared.cpp,v 1. 1 1999-10-24 22:53:24sandervl Exp $ */1 /* $Id: heapshared.cpp,v 1.2 1999-10-28 12:01:12 sandervl Exp $ */ 2 2 /* 3 3 * Shared heap functions for OS/2 … … 5 5 * Initially commit 16 kb, add more when required 6 6 * 7 * NOTE: Hardcoded limit of 256 KB per process(increase when required)7 * NOTE: Hardcoded limit of 256 KB (increase when required) 8 8 * 9 9 * TODO: Not process/thread safe (initializing/destroying heap) … … 19 19 #include <os2wrap.h> 20 20 #include <misc.h> 21 #include "heapshared.h"21 #include <heapshared.h> 22 22 23 23 //Global DLL Data … … 69 69 return FALSE; 70 70 } 71 if(_uopen(sharedHeap) != 0) { 72 dprintf(("InitializeSharedHeap: unable to open shared heap!")); 73 return FALSE; 74 } 71 75 } 72 76 refCount++; … … 88 92 pSharedMem = NULL; 89 93 } 94 } 95 else { 96 _uclose(sharedHeap); 90 97 } 91 98 } -
trunk/src/kernel32/initterm.cpp
r1481 r1490 1 /* $Id: initterm.cpp,v 1.1 8 1999-10-27 18:11:39sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.19 1999-10-28 12:01:12 sandervl Exp $ */ 2 2 3 3 /* … … 41 41 #include <odinlx.h> 42 42 #include "oslibmisc.h" 43 #include "heapshared.h"43 #include <heapshared.h> 44 44 #include "mmap.h" 45 45 … … 155 155 WriteOutProfiles(); 156 156 DestroyTIB(); 157 DestroySharedHeap(); 157 158 //NOTE: Must be done after DestroyTIB 158 159 CloseLogFile(); -
trunk/src/kernel32/makefile
r1481 r1490 1 # $Id: makefile,v 1. 49 1999-10-27 18:11:39sandervl Exp $1 # $Id: makefile,v 1.50 1999-10-28 12:01:12 sandervl Exp $ 2 2 3 3 # … … 132 132 os2heap.h 133 133 134 initterm.OBJ: .\initterm.cpp initterm.h heapshared.h mmap.h134 initterm.OBJ: .\initterm.cpp initterm.h $(PDWIN32_INCLUDE)\heapshared.h mmap.h 135 135 136 136 thunk.OBJ: \ … … 310 310 .\hmopen32.h 311 311 312 hmmmap.obj: hmmmap.cpp hmdevice.h hmopen32.h mmap.h heapshared.h312 hmmmap.obj: hmmmap.cpp hmdevice.h hmopen32.h mmap.h $(PDWIN32_INCLUDE)\heapshared.h 313 313 314 314 conprop.OBJ: \ … … 327 327 328 328 virtual.obj: virtual.cpp $(PDWIN32_INCLUDE)\win\virtual.h $(PDWIN32_INCLUDE)\handlemanager.h mmap.h 329 mmap.obj: mmap.cpp mmap.h $(PDWIN32_INCLUDE)\vmutex.h oslibdos.h heapshared.h329 mmap.obj: mmap.cpp mmap.h $(PDWIN32_INCLUDE)\vmutex.h oslibdos.h $(PDWIN32_INCLUDE)\heapshared.h 330 330 331 331 pefile.OBJ: pefile.cpp $(PDWIN32_INCLUDE)\pefile.h $(PDWIN32_INCLUDE)\winres.h … … 362 362 toolhelp.obj: toolhelp.cpp 363 363 364 heapshared.obj: heapshared.cpp heapshared.h364 heapshared.obj: heapshared.cpp $(PDWIN32_INCLUDE)\heapshared.h 365 365 366 366
Note:
See TracChangeset
for help on using the changeset viewer.