Ignore:
Timestamp:
Oct 17, 2001, 11:15:22 AM (24 years ago)
Author:
phaller
Message:

SHELL32 WINE resync

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shell32/shell.c

    r4121 r7085  
    1 /* $Id: shell.c,v 1.1 2000-08-30 13:52:53 sandervl Exp $ */
     1/* $Id: shell.c,v 1.2 2001-10-17 09:15:20 phaller Exp $ */
    22/*
    33 *                              Shell Library Functions
     
    678678        OFSTRUCT        ofs;
    679679        DWORD           sig;
    680         HFILE           hFile = OpenFile( lpszExeFileName, &ofs, OF_READ );
     680        HFILE           hFile;
    681681        UINT16          iconDirCount = 0,iconCount = 0;
    682682        LPBYTE          peimage;
     
    685685        TRACE("(%04x,file %s,start %d,extract %d\n",
    686686                       hInstance, lpszExeFileName, nIconIndex, n);
    687 
    688         if( hFile == HFILE_ERROR || !n )
     687 
     688        if( !n )
     689          return 0;
     690 
     691        hFile = OpenFile( lpszExeFileName, &ofs, OF_READ|OF_EXIST );
     692        if(hFile == HFILE_ERROR)
    689693          return 0;
    690694
Note: See TracChangeset for help on using the changeset viewer.