Changeset 1558 for trunk/src/shell32/shell32_main.cpp
- Timestamp:
- Nov 2, 1999, 9:38:48 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shell32/shell32_main.cpp
r1360 r1558 1 /* $Id: shell32_main.cpp,v 1. 4 1999-10-19 14:32:14phaller Exp $ */1 /* $Id: shell32_main.cpp,v 1.5 1999-11-02 20:38:47 phaller Exp $ */ 2 2 3 3 /* … … 46 46 #include "shlguid.h" 47 47 #include "wine/undocshell.h" 48 #include "shpolicy.h" 48 49 49 50 #include <heapstring.h> … … 159 160 { 160 161 pidl = (LPCITEMIDLIST) path; 162 if (!pidl ) 163 { 164 dprintf(("pidl is null!\n")); 165 return FALSE; 166 } 161 167 } 162 168 else if (!(flags & SHGFI_USEFILEATTRIBUTES)) … … 200 206 if (SUCCEEDED(hr) && (flags & SHGFI_TYPENAME)) 201 207 { 202 if(_ILIsValue(pidlLast)) 203 { 204 char sTemp[64]; 205 if (_ILGetExtension (pidlLast, sTemp, 64)) 206 { 207 if (!( HCR_MapTypeToValue(sTemp, sTemp, 64, TRUE) 208 && HCR_MapTypeToValue(sTemp, psfi->szTypeName, 80, FALSE ))) 209 { 210 lstrcpynA (psfi->szTypeName, sTemp, 74); 211 strcat (psfi->szTypeName, "-file"); 212 } 213 } 214 } 215 else 216 { 217 strcpy(psfi->szTypeName, "Folder"); 218 } 208 _ILGetFileType(pidlLast, psfi->szTypeName, 80); 219 209 } 220 210 … … 569 559 * AboutDlgProc32 (internal) 570 560 */ 571 572 561 BOOL WINAPI AboutDlgProc( HWND hWnd, UINT msg, WPARAM wParam, 573 562 LPARAM lParam ) … … 925 914 { 926 915 dprintf(("shell32.dll instantiated twice in one address space!\n")); 916 } 917 else 918 { 919 /* we only want to call this the first time shell32 is instantiated */ 920 SHInitRestricted(NULL, NULL); 927 921 } 928 922 … … 988 982 shell32_RefCount--; 989 983 990 pOleUninitialize();991 FreeLibrary(hOle32);992 FreeLibrary(hComctl32);993 994 984 if ( !shell32_RefCount ) 995 985 { … … 1010 1000 } 1011 1001 } 1002 1003 FreeLibrary(hOle32); 1004 FreeLibrary(hComctl32); 1005 1012 1006 dprintf(("refcount=%u objcount=%u \n", shell32_RefCount, shell32_ObjCount)); 1013 1007 break;
Note:
See TracChangeset
for help on using the changeset viewer.