- Timestamp:
- Jan 20, 2001, 4:48:54 PM (25 years ago)
- 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:26bird Exp $1 ; $Id: myVR32AllocMem.asm,v 1.2 2001-01-20 15:48:54 bird Exp $ 2 2 ; 3 3 ; VR32AllocMem over loader which adds the OBJ_ANY flag. … … 9 9 .386p 10 10 11 12 ; 13 ; Defined Constants And Macros 14 ; 15 SEF_EIP EQU 3ch 16 SEF_CS EQU 40h 17 18 ARG_FLAGS EQU 50h 19 20 11 21 ; 12 22 ; Include files 13 23 ; 14 24 include devsegdf.inc 15 25 include bsememf.inc 26 ifndef OBJ_ANY 27 OBJ_ANY EQU 00000400H 28 endif 16 29 17 30 … … 19 32 ; Exported symbols 20 33 ; 21 public 34 public _myVR32AllocMem@50 22 35 23 36 … … 25 38 ; Externs 26 39 ; 27 extrn ApiApplyChange:PROC 40 extrn apiApplyChange:PROC ; system call? 41 extrn _VR32AllocMem@50:PROC 28 42 29 43 … … 31 45 32 46 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 34 55 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 ; 76 call_vr: 77 jmp FLAT:CALLTAB:_VR32AllocMem@50 78 _myVR32AllocMem@50 endp 36 79 37 80 CODE32 ends
Note:
See TracChangeset
for help on using the changeset viewer.