Ignore:
Timestamp:
Nov 2, 1999, 9:38:48 PM (26 years ago)
Author:
phaller
Message:

Add: update to wine/shell32 1999/11/02 #4

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:14 phaller Exp $ */
     1/* $Id: shell32_main.cpp,v 1.5 1999-11-02 20:38:47 phaller Exp $ */
    22
    33/*
     
    4646#include "shlguid.h"
    4747#include "wine/undocshell.h"
     48#include "shpolicy.h"
    4849
    4950#include <heapstring.h>
     
    159160   {
    160161     pidl = (LPCITEMIDLIST) path;
     162     if (!pidl )
     163     {
     164       dprintf(("pidl is null!\n"));
     165       return FALSE;
     166     }
    161167   }
    162168   else if (!(flags & SHGFI_USEFILEATTRIBUTES))
     
    200206   if (SUCCEEDED(hr) && (flags & SHGFI_TYPENAME))
    201207   {
    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);
    219209   }
    220210
     
    569559 * AboutDlgProc32                           (internal)
    570560 */
    571 
    572561BOOL WINAPI AboutDlgProc( HWND hWnd, UINT msg, WPARAM wParam,
    573562                              LPARAM lParam )
     
    925914       {
    926915         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);
    927921       }
    928922
     
    988982       shell32_RefCount--;
    989983
    990        pOleUninitialize();
    991        FreeLibrary(hOle32);
    992        FreeLibrary(hComctl32);
    993 
    994984       if ( !shell32_RefCount )
    995985       {
     
    10101000         }
    10111001       }
     1002
     1003       FreeLibrary(hOle32);
     1004       FreeLibrary(hComctl32);
     1005
    10121006       dprintf(("refcount=%u objcount=%u \n", shell32_RefCount, shell32_ObjCount));
    10131007       break;
Note: See TracChangeset for help on using the changeset viewer.