Ignore:
Timestamp:
Jun 14, 2001, 2:19:41 PM (24 years ago)
Author:
bird
Message:

Close file on error.

File:
1 edited

Legend:

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

    r5119 r6009  
    1 /* $Id: myldrOpen.cpp,v 1.15 2001-02-11 23:43:51 bird Exp $
     1/* $Id: myldrOpen.cpp,v 1.16 2001-06-14 12:19:41 bird Exp $
    22 *
    33 * myldrOpen - ldrOpen.
     
    296296                    kprintf(("myldrOpen-%d: pe.exe - opening\n", cNesting));
    297297                    ldrClose(*phFile);
     298                    *phFile = 0xFFFF;
    298299                    strcpy(u1.pach, "PE.EXE");
    299300                    rc = ldrOpen(phFile, u1.pach, pfl); /* This isn't recusive! */
     
    424425
    425426                ldrClose(*phFile);
     427                *phFile = 0xFFFF;
    426428                rc = ldrOpen(phFile, ".\\JAVA.EXE", pfl);
    427429                if (rc != NO_ERROR)
     
    641643                    }
    642644                    ldrClose(*phFile);
     645                    *phFile = 0xFFFF;
    643646                    rc = myldrOpen(phFile, psz, pfl);
    644647                    if (rc != NO_ERROR)
     
    712715            kprintf(("myldrOpen-%d: Found REXX script\n", cNesting));
    713716            ldrClose(*phFile);
     717            *phFile = 0xFFFF;
    714718            psz = "KRX.EXE";
    715719            rc = ldrOpen(phFile, psz, pfl);
     
    753757         */
    754758    cleanup:
     759        if (rc && *phFile != 0xFFFF)
     760        {
     761            ldrClose(*phFile);
     762            *phFile = 0xFFFF;
     763        }
    755764        rfree(u1.pach);
    756765        cNesting--;
Note: See TracChangeset for help on using the changeset viewer.