Changeset 8699 for trunk/src


Ignore:
Timestamp:
Jun 16, 2002, 6:41:26 PM (23 years ago)
Author:
sandervl
Message:

Fixed desktop object creation during win32 app install

File:
1 edited

Legend:

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

    r8614 r8699  
    400400    GRPICONDIR *pIconDir;
    401401    BITMAPINFO *pIcon;
     402    ENUMRESSTRUCT sEnumRes;
    402403    int nMax = 0;
    403404    int i;
     
    409410    }
    410411
    411     if (nIndex)
    412     {
    413         hResInfo = FindResourceA(hModule, MAKEINTRESOURCEA(nIndex), RT_GROUP_ICONA);
     412    if (nIndex < 0)
     413    {
     414        hResInfo = FindResourceA(hModule, MAKEINTRESOURCEA(-nIndex), RT_GROUP_ICONA);
    414415#ifdef __WIN32OS2__
    415416        if(!hResInfo) {
     
    441442    }
    442443    else
    443         if (EnumResourceNamesA(hModule, RT_GROUP_ICONA, &EnumResNameProc, (LONG) &hResInfo))
     444    {
     445        sEnumRes.pResInfo = &hResInfo;
     446        sEnumRes.nIndex = nIndex;
     447        if (EnumResourceNamesA(hModule, RT_GROUP_ICONA, &EnumResNameProc, (LONG) &sEnumRes))
    444448        {
    445449            TRACE("EnumResourceNamesA failed, error %ld\n", GetLastError());
    446450            goto error2;
    447451        }
     452    }
    448453
    449454    if (!hResInfo)
Note: See TracChangeset for help on using the changeset viewer.