Changeset 6502 for trunk/src/shell32


Ignore:
Timestamp:
Aug 9, 2001, 5:01:50 PM (24 years ago)
Author:
sandervl
Message:

* empty log message *

File:
1 edited

Legend:

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

    r6492 r6502  
    397397            if(hResInfo) {
    398398                GRPICONDIR icondir = {0};
     399                BITMAPINFO *bmi;
     400
     401                bmi = (BITMAPINFO *)LockResource(LoadResource(hModule, hResInfo));
    399402
    400403                icondir.idReserved = 0;
     
    402405                icondir.idCount    = 1;
    403406                icondir.idEntries[0].nID = nIndex;
     407                icondir.idEntries[0].bHeight = bmi->bmiHeader.biHeight/2;
     408                icondir.idEntries[0].bWidth  = bmi->bmiHeader.biWidth;
     409                icondir.idEntries[0].wBitCount = bmi->bmiHeader.biBitCount;
    404410
    405411                if(!SaveIconResAsOS2ICO(&icondir, hModule, szXPMFileName))
Note: See TracChangeset for help on using the changeset viewer.