Ignore:
Timestamp:
Aug 19, 2000, 4:37:21 PM (25 years ago)
Author:
bird
Message:

More bugs corrected.
It's working now!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GRACE/src/win32k/ldr/myldrOpen.cpp

    r4025 r4046  
    1 /* $Id: myldrOpen.cpp,v 1.10.4.3 2000-08-17 08:23:33 bird Exp $
     1/* $Id: myldrOpen.cpp,v 1.10.4.4 2000-08-19 14:37:15 bird Exp $
    22 *
    33 * myldrOpen - ldrOpen.
     
    1818#define INCL_OS2KRNL_IO
    1919#define INCL_OS2KRNL_TCB
     20#define INCL_OS2KRNL_SEM
    2021
    2122/*******************************************************************************
     
    115116        {
    116117            kprintf(("myldrOpen-%d: rmalloc(640) failed\n", cNesting));
    117             return NO_ERROR;
     118            goto semcleanup;
    118119        }
    119120
     
    639640    #endif
    640641
     642semcleanup:
     643    /*
     644     * We have to clean the smaphore which was taken by mytkExecPgm here
     645     * because we might not return before the new child is finsished
     646     * executing.
     647     * It is not risk in releasing the semphore here since it's taken
     648     * three times now. First by tkExecPgm then by LDROpenExe.
     649     */
     650    if (isLdrStateExecPgm() && fLdrSemTaken)
     651    {
     652        KSEMReleaseMutex((HKMTX)pLdrSem);
     653        fLdrSemTaken = 0;
     654    }
     655
    641656    /** @sketch
    642657     *  Return rc.
Note: See TracChangeset for help on using the changeset viewer.