Changeset 4981 for trunk/src


Ignore:
Timestamp:
Jan 20, 2001, 4:48:54 PM (25 years ago)
Author:
bird
Message:

Pre commit

Location:
trunk/src/win32k
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/api/myVR32AllocMem.asm

    r4973 r4981  
    1 ; $Id: myVR32AllocMem.asm,v 1.1 2001-01-19 02:43:26 bird Exp $
     1; $Id: myVR32AllocMem.asm,v 1.2 2001-01-20 15:48:54 bird Exp $
    22;
    33; VR32AllocMem over loader which adds the OBJ_ANY flag.
     
    99    .386p
    1010
     11
     12;
     13;   Defined Constants And Macros
     14;
     15SEF_EIP     EQU     3ch
     16SEF_CS      EQU     40h
     17
     18ARG_FLAGS   EQU     50h
     19
     20
    1121;
    1222; Include files
    1323;
    1424    include devsegdf.inc
    15 
     25    include bsememf.inc
     26    ifndef OBJ_ANY
     27    OBJ_ANY     EQU     00000400H
     28    endif
    1629
    1730
     
    1932; Exported symbols
    2033;
    21     public
     34    public _myVR32AllocMem@50
    2235
    2336
     
    2538; Externs
    2639;
    27     extrn ApiApplyChange:PROC
     40    extrn apiApplyChange:PROC           ; system call?
     41    extrn _VR32AllocMem@50:PROC
    2842
    2943
     
    3145
    3246
    33 myVR32AllocMem proc near
     47_myVR32AllocMem@50 proc near
     48    ASSUME ds:FLAT, es:NOTHING, ss:NOTHING
     49    ;
     50    ; Check if OBJ_ANY flag is allready set.
     51    ;
     52    mov     edx, [esp + ARG_FLAGS]
     53    test    edx, OBJ_ANY
     54    jnz     FLAT:call_vr
    3455
    35 myVR32AllocMem endp
     56
     57    ;
     58    ; It was not - check if we're to set it for this calling module.
     59    ;
     60    push    eax
     61    push    dword ptr [esp + SEF_CS]
     62    push    dword ptr [esp + SEF_EIP]
     63    push    1
     64    call    apiApplyChange
     65    sub     esp, 0ch
     66    test    eax, eax
     67    pop     eax
     68    jz      FLAT:call_vr
     69
     70    ; Apply the OBJ_ANY flag.
     71    or      word ptr [esp + ARG_FLAGS], OBJ_ANY ; only need to update first word.
     72
     73    ;
     74    ; Call the original verify/worker routine.
     75    ;
     76call_vr:
     77    jmp     FLAT:CALLTAB:_VR32AllocMem@50
     78_myVR32AllocMem@50 endp
    3679
    3780CODE32 ends
Note: See TracChangeset for help on using the changeset viewer.