Changeset 5224 for trunk/src/win32k/lib/libDosAllocMemEx.c
- Timestamp:
- Feb 21, 2001, 8:47:59 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/lib/libDosAllocMemEx.c
r5201 r5224 1 /* $Id: libDosAllocMemEx.c,v 1. 7 2001-02-20 04:57:28 bird Exp $1 /* $Id: libDosAllocMemEx.c,v 1.8 2001-02-21 07:47:58 bird Exp $ 2 2 * 3 3 * DosAllocMemEx - Extened Edition of DosAllocMem. 4 4 * Allows you to suggest an address of the memory. 5 5 * 6 * Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@mynd.no)6 * Copyright (c) 2000-2001 knut st. osmundsen (knut.stange.osmundsen@mynd.no) 7 7 * 8 8 * Project Odin Software License can be found in LICENSE.TXT … … 24 24 #include <os2.h> 25 25 #include "win32k.h" 26 27 28 /******************************************************************************* 29 * Global Variables * 30 *******************************************************************************/ 31 extern BOOL fInited; 32 extern HFILE hWin32k; 33 26 #include "libPrivate.h" 34 27 35 28 … … 45 38 ULONG cbData = 0UL; 46 39 40 Param.hdr.cb = sizeof(Param); 41 Param.hdr.rc = ERROR_NOT_SUPPORTED; 47 42 Param.ppv = ppv; 48 43 Param.cb = cb; 49 44 Param.flFlags = flag; 50 Param.rc = 0;51 45 Param.ulCS = libHelperGetCS(); 52 46 Param.ulEIP = *(PULONG)((int)(&ppv) - 4); 53 47 48 if (usCGSelector) 49 return libCallThruCallGate(K32_ALLOCMEMEX, &Param); 54 50 rc = DosDevIOCtl(hWin32k, 55 51 IOCTL_W32K_K32, … … 58 54 "", 1, &cbData); 59 55 if (rc == NO_ERROR) 60 { 61 rc = Param.rc; 62 } 56 rc = Param.hdr.rc; 63 57 } 64 58 else
Note:
See TracChangeset
for help on using the changeset viewer.