Ignore:
Timestamp:
Feb 21, 2001, 8:47:59 AM (25 years ago)
Author:
bird
Message:

CallGate changes.

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 $
    22 *
    33 * DosAllocMemEx - Extened Edition of DosAllocMem.
    44 *                 Allows you to suggest an address of the memory.
    55 *
    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)
    77 *
    88 * Project Odin Software License can be found in LICENSE.TXT
     
    2424#include <os2.h>
    2525#include "win32k.h"
    26 
    27 
    28 /*******************************************************************************
    29 *   Global Variables                                                           *
    30 *******************************************************************************/
    31 extern BOOL     fInited;
    32 extern HFILE    hWin32k;
    33 
     26#include "libPrivate.h"
    3427
    3528
     
    4538        ULONG         cbData = 0UL;
    4639
     40        Param.hdr.cb = sizeof(Param);
     41        Param.hdr.rc = ERROR_NOT_SUPPORTED;
    4742        Param.ppv = ppv;
    4843        Param.cb = cb;
    4944        Param.flFlags = flag;
    50         Param.rc = 0;
    5145        Param.ulCS = libHelperGetCS();
    5246        Param.ulEIP = *(PULONG)((int)(&ppv) - 4);
    5347
     48        if (usCGSelector)
     49            return libCallThruCallGate(K32_ALLOCMEMEX, &Param);
    5450        rc = DosDevIOCtl(hWin32k,
    5551                         IOCTL_W32K_K32,
     
    5854                         "", 1, &cbData);
    5955        if (rc == NO_ERROR)
    60         {
    61             rc = Param.rc;
    62         }
     56            rc = Param.hdr.rc;
    6357    }
    6458    else
Note: See TracChangeset for help on using the changeset viewer.