Changeset 4065 for branches/Grace/src


Ignore:
Timestamp:
Aug 22, 2000, 12:59:40 AM (25 years ago)
Author:
bird
Message:

Temporary checkin (backup).

Location:
branches/Grace/src/win32k/ldr
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/Grace/src/win32k/ldr/myldrClose.cpp

    r3834 r4065  
    1 /* $Id: myldrClose.cpp,v 1.5.4.1 2000-07-16 22:43:35 bird Exp $
     1/* $Id: myldrClose.cpp,v 1.5.4.2 2000-08-21 22:59:39 bird Exp $
    22 *
    33 * myldrClose - ldrClose
     
    3131#include "ldrCalls.h"
    3232#include "ModuleBase.h"
     33#include "Pe2Lx.h"
    3334
    3435
     
    6364        #pragma info(restore)
    6465    }
     66    /*
     67     * Invalidate the odin32path if kernel32 is closed.
     68     *  (Might possible not be needed as Pe2Lx does invalides
     69     *   the odin32path on object destruction.)
     70     */
     71    else if (Pe2Lx::getKernel32SFN() == hFile)
     72        Pe2Lx::invalidateOdin32Path();
    6573
     74    /*
     75     * Finally call the real close function.
     76     */
    6677    return ldrClose(hFile);
    6778}
  • branches/Grace/src/win32k/ldr/mytkExecPgm.asm

    r4046 r4065  
    1 ; $Id: mytkExecPgm.asm,v 1.10.4.3 2000-08-19 14:37:16 bird Exp $
     1; $Id: mytkExecPgm.asm,v 1.10.4.4 2000-08-21 22:59:40 bird Exp $
    22;
    33; mytkExecPgm - tkExecPgm overload
     
    2323
    2424;
    25 ;   Imported Functions
     25;   Imported Functions and variables.
    2626;
    2727    extrn  _g_tkExecPgm:PROC
     
    326326    ASSUME  ds:FLAT, es:FLAT            ; both ds and es are now FLAT
    327327
    328     ;
    329     ; Clear loader state, current exe module and tkExecPgm global data flag.
    330     ;
     328
     329    ;
     330    ; Clear loader semaphore.
     331    ; and clear loader state, current exe module and tkExecPgm global data flag.
     332    ;
     333    cmp     fLdrSemTaken, 0             ; is the semaphore still taken?
     334    je      tkepgm_callbehindret        ; jmp if not taken.
    331335    mov     ulLDRState, 0               ; Clears loaderstate. (LDRSTATE_UNKNOWN)
    332336    mov     pExeModule, 0               ; Sets the exemodule pointer to NULL.
    333337    mov     fTkExecPgm, 0               ; Marks global data invalid.
    334 
    335     ;
    336     ; Clear loader semaphore.
    337     ;
    338     cmp     fLdrSemTaken, 0             ; is the semaphore still taken?
    339     je      tkepgm_callbehindret        ; jmp if not taken.
     338    call    near ptr FLAT:_LDRClearSem@0
    340339    mov     fLdrSemTaken, 0             ; Loader semaphore is not taken any longer!
    341     call    near ptr FLAT:_LDRClearSem@0
    342340
    343341    ;
Note: See TracChangeset for help on using the changeset viewer.