Ignore:
Timestamp:
Oct 14, 1999, 3:25:39 AM (26 years ago)
Author:
bird
Message:

Pe2Lx rewrite changes in win32k.
Pluss some makefile/depend changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/ldr/myldrClose.cpp

    r847 r1273  
    1 /* $Id: myldrClose.cpp,v 1.1 1999-09-06 02:20:01 bird Exp $
     1/* $Id: myldrClose.cpp,v 1.2 1999-10-14 01:25:38 bird Exp $
    22 *
    33 * myldrClose - _ldrClose
     
    1818#include <os2.h>
    1919
     20#include <memory.h>
     21#include <stdlib.h>
     22
     23#include "log.h"
     24#include <peexe.h>
     25#include <exe386.h>
    2026#include "OS2Krnl.h"
    21 #include "log.h"
    22 #if 0
    23     #include "lxFile.h"
    24 #else
    25     #define LXFile class { public: BOOL queryIsModuleName(const char *) {return FALSE;}}
    26 #endif
     27#include "pe2lx.h"
    2728#include "ldr.h"
    2829#include "ldrCalls.h"
     
    4142    /* closes handle */
    4243    kprintf(("_ldrClose: hFile = %.4x\n", hFile));
    43     if (GetState(hFile) == HSTATE_CHECK)
    44         freeUncertainEntry(hFile);
    45     else
     44    if (GetState(hFile) == HSTATE_OUR)
    4645    {
    47         if (GetState(hFile) == HSTATE_PE)
    48         {
    49             rc = deleteNode(hFile);
    50             if (rc != NO_ERROR)
    51                 kprintf(("Funny! deleteNode failed rc = %d\n", rc));
    52         }
     46        rc = deleteNode(hFile);
     47        if (rc != NO_ERROR)
     48            kprintf(("Funny! deleteNode failed rc = %d\n", rc));
     49
     50        SetState(hFile, HSTATE_UNUSED);
    5351    }
    5452
    55     SetState(hFile, HSTATE_UNUSED);
    5653    return _ldrClose(hFile);
    5754}
Note: See TracChangeset for help on using the changeset viewer.