- Timestamp:
- Jun 16, 2002, 6:41:26 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shell32/shelllink.c
r8614 r8699 400 400 GRPICONDIR *pIconDir; 401 401 BITMAPINFO *pIcon; 402 ENUMRESSTRUCT sEnumRes; 402 403 int nMax = 0; 403 404 int i; … … 409 410 } 410 411 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); 414 415 #ifdef __WIN32OS2__ 415 416 if(!hResInfo) { … … 441 442 } 442 443 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)) 444 448 { 445 449 TRACE("EnumResourceNamesA failed, error %ld\n", GetLastError()); 446 450 goto error2; 447 451 } 452 } 448 453 449 454 if (!hResInfo)
Note:
See TracChangeset
for help on using the changeset viewer.