Changeset 4689 for trunk/src/user32/winicon.cpp
- Timestamp:
- Nov 24, 2000, 2:16:26 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/winicon.cpp
r4677 r4689 1 /* $Id: winicon.cpp,v 1.1 7 2000-11-22 21:04:32sandervl Exp $ */1 /* $Id: winicon.cpp,v 1.18 2000-11-24 13:16:26 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Icon Code for OS/2 … … 900 900 GlobalUnlock( Handle ); 901 901 if(dwResGroupId == -1) { 902 //todo: if scaling is necessary.. 902 903 dprintf(("WARNING: no resource associated with icon/cursor -> copy without scaling!")); 903 904 hNew = CURSORICON_Copy(Handle); … … 917 918 */ 918 919 hRsrc = FindResourceW(hInstance, (LPWSTR)dwResGroupId, bIsIcon ? RT_GROUP_ICONW : RT_GROUP_CURSORW); 919 if(!hRsrc) return 0; 920 if(!hRsrc) { 921 goto notfound; 922 } 920 923 921 924 if (!(hMem = LoadResource( hInstance, hRsrc))) 922 925 { 923 return 0;926 goto notfound; 924 927 } 925 928 if (!(pDir = (CURSORICONDIR*)LockResource( hMem ))) 926 929 { 927 return 0;930 goto notfound; 928 931 } 929 932 … … 950 953 MAKEINTRESOURCEW(wResId), bIsIcon ? RT_ICONW : RT_CURSORW))) 951 954 { 952 return 0;955 goto notfound; 953 956 } 954 957 if (!(hMem = LoadResource( hInstance, hRsrc ))) 955 958 { 956 return 0;959 goto notfound; 957 960 } 958 961 … … 975 978 hNew = CURSORICON_Copy(Handle); 976 979 } 980 return hNew; 981 982 notfound: 983 dprintf(("WARNING: unable to find resource associated with icon/cursor -> copy without scaling!")); 984 hNew = CURSORICON_Copy(Handle); 977 985 return hNew; 978 986 }
Note:
See TracChangeset
for help on using the changeset viewer.